mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 03:12:22 -07:00
Make set_procedure_abi_types use the permanent_allocator
This commit is contained in:
+4
-4
@@ -296,7 +296,7 @@ void ir_print_alignment_prefix_hack(irFileBuffer *f, i64 alignment) {
|
||||
|
||||
|
||||
void ir_print_proc_results(irFileBuffer *f, irModule *m, Type *t) {
|
||||
set_procedure_abi_types(heap_allocator(), t);
|
||||
set_procedure_abi_types(t);
|
||||
|
||||
GB_ASSERT(is_type_proc(t));
|
||||
t = base_type(t);
|
||||
@@ -325,7 +325,7 @@ void ir_print_proc_results(irFileBuffer *f, irModule *m, Type *t) {
|
||||
|
||||
|
||||
void ir_print_proc_type_without_pointer(irFileBuffer *f, irModule *m, Type *t) {
|
||||
set_procedure_abi_types(heap_allocator(), t);
|
||||
set_procedure_abi_types(t);
|
||||
|
||||
i64 word_bits = 8*build_context.word_size;
|
||||
t = base_type(t);
|
||||
@@ -2189,7 +2189,7 @@ void ir_print_instr(irFileBuffer *f, irModule *m, irValue *value) {
|
||||
irInstrCall *call = &instr->Call;
|
||||
Type *proc_type = base_type(ir_type(call->value));
|
||||
GB_ASSERT(is_type_proc(proc_type));
|
||||
set_procedure_abi_types(heap_allocator(), proc_type);
|
||||
set_procedure_abi_types(proc_type);
|
||||
|
||||
bool is_c_vararg = proc_type->Proc.c_vararg;
|
||||
Type *result_type = call->type;
|
||||
@@ -2396,7 +2396,7 @@ void ir_print_instr(irFileBuffer *f, irModule *m, irValue *value) {
|
||||
|
||||
|
||||
void ir_print_proc(irFileBuffer *f, irModule *m, irProcedure *proc) {
|
||||
set_procedure_abi_types(heap_allocator(), proc->type);
|
||||
set_procedure_abi_types(proc->type);
|
||||
|
||||
if (proc->body == nullptr) {
|
||||
ir_write_str_lit(f, "declare ");
|
||||
|
||||
Reference in New Issue
Block a user