summaryrefslogtreecommitdiffstatshomepage
path: root/py/compile.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-06 01:01:01 +0100
committerDamien <damien.p.george@gmail.com>2013-10-06 01:01:01 +0100
commitdc83382903675c017f449285bf42a51d0e936e4e (patch)
tree535bcc550ee75e3d3e919c2d73380d14833449f3 /py/compile.c
parent03d4124320fa2a6c987b86bbcd9afbd1563fdf40 (diff)
downloadmicropython-dc83382903675c017f449285bf42a51d0e936e4e.tar.gz
micropython-dc83382903675c017f449285bf42a51d0e936e4e.zip
Make runtime able to call inline asm with 1 argument.
Diffstat (limited to 'py/compile.c')
-rw-r--r--py/compile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/py/compile.c b/py/compile.c
index 1fd92c9477..924938e02e 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -2683,7 +2683,7 @@ void py_compile(py_parse_node_t pn) {
// compile pass 2 and 3
emit_t *emit_bc = NULL;
- emit_t *emit_x64 = NULL;
+ emit_t *emit_native = NULL;
emit_inline_asm_t *emit_inline_thumb = NULL;
for (scope_t *s = comp->scope_head; s != NULL; s = s->next) {
if (s->emit_options == EMIT_OPT_ASM_THUMB) {
@@ -2699,10 +2699,10 @@ void py_compile(py_parse_node_t pn) {
} else {
switch (s->emit_options) {
case EMIT_OPT_NATIVE_PYTHON:
- if (emit_x64 == NULL) {
- emit_x64 = emit_x64_new(max_num_labels);
+ if (emit_native == NULL) {
+ emit_native = emit_x64_new(max_num_labels);
}
- comp->emit = emit_x64;
+ comp->emit = emit_native;
comp->emit_method_table = &emit_x64_method_table;
break;