summaryrefslogtreecommitdiff
path: root/py/emitbc.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-05 13:44:41 +0100
committerDamien <damien.p.george@gmail.com>2013-10-05 13:44:41 +0100
commit054848a1b8aa7e52f3c70e86cc4dc56b565ea830 (patch)
tree254e394f59d095f9ee5384d0ffe9b36fabc8ecaa /py/emitbc.c
parentb05d707b2329a9534121e09e26eb9f8fef1917d3 (diff)
Compiler computes labels and max_num_labels.
Diffstat (limited to 'py/emitbc.c')
-rw-r--r--py/emitbc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/py/emitbc.c b/py/emitbc.c
index fae394bd9..eeeb2b749 100644
--- a/py/emitbc.c
+++ b/py/emitbc.c
@@ -158,10 +158,6 @@ static void emit_pre(emit_t *emit, int stack_size_delta) {
emit->last_emit_was_return_value = false;
}
-static int emit_bc_label_new(emit_t *emit) {
- return emit->next_label++;
-}
-
static void emit_bc_label_assign(emit_t *emit, int l) {
emit_pre(emit, 0);
assert(l < emit->max_num_labels);
@@ -669,7 +665,6 @@ static const emit_method_table_t emit_bc_method_table = {
emit_bc_get_stack_size,
emit_bc_set_stack_size,
- emit_bc_label_new,
emit_bc_label_assign,
emit_bc_import_name,
emit_bc_import_from,