@@ -17,8 +17,6 @@ typedef enum {
1717typedef struct _emit_t emit_t ;
1818
1919typedef struct _emit_method_table_t {
20- void (* free )(emit_t * emit );
21-
2220 void (* set_native_types )(emit_t * emit , bool do_native_types );
2321 void (* start_pass )(emit_t * emit , pass_kind_t pass , scope_t * scope );
2422 void (* end_pass )(emit_t * emit );
@@ -120,12 +118,16 @@ extern const emit_method_table_t emit_native_x64_method_table;
120118extern const emit_method_table_t emit_native_thumb_method_table ;
121119
122120emit_t * emit_pass1_new (qstr qstr___class__ );
123- void emit_pass1_free (emit_t * emit );
124121emit_t * emit_cpython_new (uint max_num_labels );
125122emit_t * emit_bc_new (uint max_num_labels );
126123emit_t * emit_native_x64_new (uint max_num_labels );
127124emit_t * emit_native_thumb_new (uint max_num_labels );
128125
126+ void emit_pass1_free (emit_t * emit );
127+ void emit_bc_free (emit_t * emit );
128+ void emit_native_x64_free (emit_t * emit );
129+ void emit_native_thumb_free (emit_t * emit );
130+
129131typedef struct _emit_inline_asm_t emit_inline_asm_t ;
130132
131133typedef struct _emit_inline_asm_method_table_t {
@@ -139,3 +141,5 @@ typedef struct _emit_inline_asm_method_table_t {
139141extern const emit_inline_asm_method_table_t emit_inline_thumb_method_table ;
140142
141143emit_inline_asm_t * emit_inline_thumb_new (uint max_num_labels );
144+ void emit_inline_thumb_free (emit_inline_asm_t * emit );
145+
0 commit comments