diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-12-03 04:22:59 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-12-03 04:22:59 +0000 |
commit | 87fa534a7af257405cd114e4139ad1d34fcc7ca7 (patch) | |
tree | ad881ad9380e23bf140abf628ada88aa4873802e | |
parent | 4332862fa3b5ba4992d013173bb23fe88bdb390d (diff) | |
download | obf-87fa534a7af257405cd114e4139ad1d34fcc7ca7.tar.gz obf-87fa534a7af257405cd114e4139ad1d34fcc7ca7.tar.bz2 obf-87fa534a7af257405cd114e4139ad1d34fcc7ca7.zip |
asm_write_{init, exit} when asm_translate_nodes
-rw-r--r-- | assembler.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/assembler.c b/assembler.c index df92f1e..8270f01 100644 --- a/assembler.c +++ b/assembler.c @@ -119,6 +119,7 @@ void ast_ref_to_asm_label(u64, struct Label *, u64, i64 *, i64 *); void asm_translate_nodes(buffer_t **asm_buffer, struct PResult nodes, const char *src_name) { + asm_write_init(asm_buffer); // First pass: Setup the ASM label array struct Label labels[nodes.labels ? nodes.labels * 2 : 1]; if (nodes.labels) @@ -184,6 +185,7 @@ void asm_translate_nodes(buffer_t **asm_buffer, struct PResult nodes, table[node.type].len); } } + asm_write_exit(asm_buffer); } /* Implementations for throwaway functions */ |