diff options
| author | gingerBill <bill@gingerbill.org> | 2023-07-24 10:27:55 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-07-24 10:27:55 +0100 |
| commit | 241a939c2985b0d9ad65dd305af6e84c82554e39 (patch) | |
| tree | 22cec65b92d28319ad0f0127642c0d84693cdaae /src/tilde_proc.cpp | |
| parent | 2f9c5d2d0b500518acecb9badd4b6947db6fd536 (diff) | |
Update Tilde
Diffstat (limited to 'src/tilde_proc.cpp')
| -rw-r--r-- | src/tilde_proc.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tilde_proc.cpp b/src/tilde_proc.cpp index 610d715ae..e75c621ee 100644 --- a/src/tilde_proc.cpp +++ b/src/tilde_proc.cpp @@ -334,8 +334,8 @@ gb_internal void cg_procedure_end(cgProcedure *p) { } bool emit_asm = false; - if (string_starts_with(p->name, str_lit("bug@main"))) { - // emit_asm = true; + if (string_starts_with(p->name, str_lit("bug@"))) { + emit_asm = true; } TB_FunctionOutput *output = tb_module_compile_function(p->module->mod, p->func, TB_ISEL_FAST, emit_asm); @@ -357,7 +357,10 @@ gb_internal void cg_procedure_generate(cgProcedure *p) { cg_build_stmt(p, p->body); cg_procedure_end(p); - if (string_starts_with(p->name, str_lit("bug@main"))) { // IR Printing + if ( + // string_starts_with(p->name, str_lit("bug@")) || + false + ) { // IR Printing TB_Arena *arena = tb_default_arena(); defer (arena->free(arena)); TB_FuncOpt *opt = tb_funcopt_enter(p->func, arena); |