diff options
| author | gingerBill <bill@gingerbill.org> | 2023-08-07 14:40:42 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-08-07 14:40:42 +0100 |
| commit | 0c1b39d881a5f91534bf0f33fb945ab57ef293d8 (patch) | |
| tree | 5b16e10ddad44dccdb8f827294e9f3c73b68dba1 /src/tilde_proc.cpp | |
| parent | 67ffae7e32301a817d73ba68b5e0d6a626c2b4de (diff) | |
Mock out map get/set functionality
Diffstat (limited to 'src/tilde_proc.cpp')
| -rw-r--r-- | src/tilde_proc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tilde_proc.cpp b/src/tilde_proc.cpp index 1981d32ce..26d1ce409 100644 --- a/src/tilde_proc.cpp +++ b/src/tilde_proc.cpp @@ -388,7 +388,7 @@ gb_internal WORKER_TASK_PROC(cg_procedure_compile_worker_proc) { // emit ir if ( - // string_starts_with(p->name, str_lit("bug@main")) || + string_starts_with(p->name, str_lit("main@")) || // p->name == str_lit("runtime@_windows_default_alloc_or_resize") || false ) { // IR Printing @@ -398,6 +398,7 @@ gb_internal WORKER_TASK_PROC(cg_procedure_compile_worker_proc) { tb_pass_print(passes); fprintf(stdout, "\n"); + fflush(stdout); } if (false) { // GraphViz printing tb_function_print(p->func, tb_default_print_callback, stdout); @@ -408,6 +409,7 @@ gb_internal WORKER_TASK_PROC(cg_procedure_compile_worker_proc) { if (emit_asm) { tb_output_print_asm(output, stdout); fprintf(stdout, "\n"); + fflush(stdout); } return 0; @@ -1018,6 +1020,7 @@ gb_internal cgProcedure *cg_equal_proc_for_type(cgModule *m, Type *type) { cgProcedure *p = cg_procedure_create_dummy(m, proc_name, t_equal_proc); map_set(&m->equal_procs, type, p); + p->split_returns_index = 2; cg_procedure_begin(p); @@ -1168,6 +1171,7 @@ gb_internal cgProcedure *cg_hasher_proc_for_type(cgModule *m, Type *type) { cgProcedure *p = cg_procedure_create_dummy(m, proc_name, t_hasher_proc); map_set(&m->hasher_procs, type, p); + p->split_returns_index = 2; cg_procedure_begin(p); defer (cg_procedure_end(p)); |