summaryrefslogtreecommitdiff
path: root/py/emit.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-06-17 23:06:24 +1000
committerDamien George <damien@micropython.org>2022-06-20 22:28:18 +1000
commite85a096302e8b186b82c74e7da4e1a29ef62d9c6 (patch)
treeba0c03f2dd7b57b9d22c4cb28912e9f4585ec6ef /py/emit.h
parent0db046b67b8ed171f4898e851c3da39aab297ce9 (diff)
py/emit: Remove logic to detect last-emit-was-return-value.
This optimisation to remove dead code is not as good as it could be. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/emit.h')
-rw-r--r--py/emit.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/py/emit.h b/py/emit.h
index 608734552..4e8a55e77 100644
--- a/py/emit.h
+++ b/py/emit.h
@@ -115,7 +115,6 @@ typedef struct _emit_method_table_t {
void (*start_pass)(emit_t *emit, pass_kind_t pass, scope_t *scope);
bool (*end_pass)(emit_t *emit);
- bool (*last_emit_was_return_value)(emit_t *emit);
void (*adjust_stack_size)(emit_t *emit, mp_int_t delta);
void (*set_source_line)(emit_t *emit, mp_uint_t line);
@@ -227,7 +226,6 @@ void emit_native_xtensawin_free(emit_t *emit);
void mp_emit_bc_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scope);
bool mp_emit_bc_end_pass(emit_t *emit);
-bool mp_emit_bc_last_emit_was_return_value(emit_t *emit);
void mp_emit_bc_adjust_stack_size(emit_t *emit, mp_int_t delta);
void mp_emit_bc_set_source_line(emit_t *emit, mp_uint_t line);