diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-24 22:42:28 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-24 22:42:28 +0000 |
commit | 41d02b654e5c844f85fbb79283eaebf35af60fbb (patch) | |
tree | 224166f307256d81c08564546634106f7a8b0435 /py/emitnative.c | |
parent | ceb87835fe24873cd8b2f7d1d3d88cb6144e33b8 (diff) | |
download | micropython-41d02b654e5c844f85fbb79283eaebf35af60fbb.tar.gz micropython-41d02b654e5c844f85fbb79283eaebf35af60fbb.zip |
py: Improve freeing of emitters in mp_compile.
There can be multiple emitters allocated during compile (eg byte code
and native).
Diffstat (limited to 'py/emitnative.c')
-rw-r--r-- | py/emitnative.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/py/emitnative.c b/py/emitnative.c index ddda90659e..258aa9fce5 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -146,7 +146,7 @@ emit_t *EXPORT_FUN(new)(uint max_num_labels) { return emit; } -static void emit_native_free(emit_t *emit) { +void EXPORT_FUN(free)(emit_t *emit) { #if N_X64 asm_x64_free(emit->as, false); #elif N_THUMB @@ -1235,8 +1235,6 @@ static void emit_native_yield_from(emit_t *emit) { } const emit_method_table_t EXPORT_FUN(method_table) = { - emit_native_free, - emit_native_set_viper_types, emit_native_start_pass, emit_native_end_pass, |