summaryrefslogtreecommitdiffstatshomepage
path: root/py/emit.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-12-09 21:23:17 +1100
committerDamien George <damien.p.george@gmail.com>2016-12-09 21:23:17 +1100
commite920bab9768f71c7e22fcfc5af3e1c40f2db8eeb (patch)
tree70fe0b48f904fed208fbf0726db09f0250101dba /py/emit.h
parentdd53b12193dca4800ab207170fcc883142dd0f22 (diff)
downloadmicropython-e920bab9768f71c7e22fcfc5af3e1c40f2db8eeb.tar.gz
micropython-e920bab9768f71c7e22fcfc5af3e1c40f2db8eeb.zip
py/emitinline: Move common code for end of final pass to compiler.
This patch moves some common code from the individual inline assemblers to the compiler, the code that calls the emit-glue to assign the machine code to the functions scope.
Diffstat (limited to 'py/emit.h')
-rw-r--r--py/emit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emit.h b/py/emit.h
index 41cb2162d7..7d00f11f95 100644
--- a/py/emit.h
+++ b/py/emit.h
@@ -262,7 +262,7 @@ void mp_emit_bc_end_except_handler(emit_t *emit);
typedef struct _emit_inline_asm_t emit_inline_asm_t;
typedef struct _emit_inline_asm_method_table_t {
- void (*start_pass)(emit_inline_asm_t *emit, pass_kind_t pass, scope_t *scope, mp_obj_t *error_slot);
+ void (*start_pass)(emit_inline_asm_t *emit, pass_kind_t pass, mp_obj_t *error_slot);
void (*end_pass)(emit_inline_asm_t *emit, mp_uint_t type_sig);
mp_uint_t (*count_params)(emit_inline_asm_t *emit, mp_uint_t n_params, mp_parse_node_t *pn_params);
bool (*label)(emit_inline_asm_t *emit, mp_uint_t label_num, qstr label_id);