summaryrefslogtreecommitdiffstatshomepage
path: root/py/compile.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-09-15 12:17:14 +1000
committerDamien George <damien.p.george@gmail.com>2018-09-15 12:17:14 +1000
commit1d7c221b3023d784ba96cb501b9becae794dac1f (patch)
treeb757b513f868816e621c06e62986c17a3df95867 /py/compile.c
parent3751512e9db7ebda9ff06a710038c742ac91126c (diff)
downloadmicropython-1d7c221b3023d784ba96cb501b9becae794dac1f.tar.gz
micropython-1d7c221b3023d784ba96cb501b9becae794dac1f.zip
py/emit: Remove need to call set_native_type to set native/viper mode.
The native emitter can easily determine the mode via scope->emit_options.
Diffstat (limited to 'py/compile.c')
-rw-r--r--py/compile.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/compile.c b/py/compile.c
index d8e175bb6e..adf76fb974 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -3456,7 +3456,6 @@ mp_raw_code_t *mp_compile_to_raw_code(mp_parse_tree_t *parse_tree, qstr source_f
}
comp->emit_method_table = &NATIVE_EMITTER(method_table);
comp->emit = emit_native;
- EMIT_ARG(set_native_type, MP_EMIT_NATIVE_TYPE_ENABLE, s->emit_options == MP_EMIT_OPT_VIPER, 0);
break;
#endif // MICROPY_EMIT_NATIVE