aboutsummaryrefslogtreecommitdiff
path: root/src/tilde_proc.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-12-13 12:38:01 +0000
committergingerBill <bill@gingerbill.org>2023-12-13 12:38:01 +0000
commitbc99bacb2122f073133ddf6eeb31b4db56a99fa7 (patch)
tree6743c1ff2bd85ed8529569238d366b21840a4882 /src/tilde_proc.cpp
parent173527d6319752d1bc56db41ed33ab7904c9e13b (diff)
Update Tilde
Diffstat (limited to 'src/tilde_proc.cpp')
-rw-r--r--src/tilde_proc.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tilde_proc.cpp b/src/tilde_proc.cpp
index f5f37d73e..edd57f567 100644
--- a/src/tilde_proc.cpp
+++ b/src/tilde_proc.cpp
@@ -95,7 +95,7 @@ gb_internal cgProcedure *cg_procedure_create(cgModule *m, Entity *entity, bool i
}
if (p->symbol == nullptr) {
- p->func = tb_function_create(m->mod, link_name.len, cast(char const *)link_name.text, linkage, TB_COMDAT_NONE);
+ p->func = tb_function_create(m->mod, link_name.len, cast(char const *)link_name.text, linkage);
p->debug_type = cg_debug_type_for_proc(m, p->type);
p->proto = tb_prototype_from_dbg(m->mod, p->debug_type);
@@ -148,7 +148,7 @@ gb_internal cgProcedure *cg_procedure_create_dummy(cgModule *m, String const &li
TB_Linkage linkage = TB_LINKAGE_PRIVATE;
- p->func = tb_function_create(m->mod, link_name.len, cast(char const *)link_name.text, linkage, TB_COMDAT_NONE);
+ p->func = tb_function_create(m->mod, link_name.len, cast(char const *)link_name.text, linkage);
p->debug_type = cg_debug_type_for_proc(m, p->type);
p->proto = tb_prototype_from_dbg(m->mod, p->debug_type);
@@ -224,7 +224,8 @@ gb_internal void cg_procedure_begin(cgProcedure *p) {
return;
}
- tb_function_set_prototype(p->func, p->proto, cg_arena());
+ TB_ModuleSectionHandle section = tb_module_get_text(p->module->mod);
+ tb_function_set_prototype(p->func, section, p->proto, cg_arena());
if (p->body == nullptr) {
return;
@@ -400,7 +401,7 @@ gb_internal WORKER_TASK_PROC(cg_procedure_compile_worker_proc) {
fflush(stdout);
}
if (false) { // GraphViz printing
- tb_function_print(p->func, tb_default_print_callback, stdout);
+ tb_pass_print_dot(opt, tb_default_print_callback, stdout);
}
// compile