diff options
author | Damien <damien.p.george@gmail.com> | 2013-10-05 13:44:41 +0100 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-10-05 13:44:41 +0100 |
commit | 054848a1b8aa7e52f3c70e86cc4dc56b565ea830 (patch) | |
tree | 254e394f59d095f9ee5384d0ffe9b36fabc8ecaa /py/emitcpy.c | |
parent | b05d707b2329a9534121e09e26eb9f8fef1917d3 (diff) | |
download | micropython-054848a1b8aa7e52f3c70e86cc4dc56b565ea830.tar.gz micropython-054848a1b8aa7e52f3c70e86cc4dc56b565ea830.zip |
Compiler computes labels and max_num_labels.
Diffstat (limited to 'py/emitcpy.c')
-rw-r--r-- | py/emitcpy.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/py/emitcpy.c b/py/emitcpy.c index 72f4d4daa9..c3dc204969 100644 --- a/py/emitcpy.c +++ b/py/emitcpy.c @@ -79,10 +79,6 @@ static void emit_pre(emit_t *emit, int stack_size_delta, int byte_code_size) { emit->byte_code_offset += byte_code_size; } -static int emit_cpy_label_new(emit_t *emit) { - return emit->next_label++; -} - static void emit_cpy_label_assign(emit_t *emit, int l) { emit_pre(emit, 0, 0); assert(l < emit->max_num_labels); @@ -822,7 +818,6 @@ static const emit_method_table_t emit_cpy_method_table = { emit_cpy_get_stack_size, emit_cpy_set_stack_size, - emit_cpy_label_new, emit_cpy_label_assign, emit_cpy_import_name, emit_cpy_import_from, |