aboutsummaryrefslogtreecommitdiff
path: root/src/tilde_proc.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-07-28 12:12:06 +0100
committergingerBill <bill@gingerbill.org>2023-07-28 12:12:06 +0100
commitf6d1724835489120ae4a3805495dafc97c86db80 (patch)
treea3c41697bf7c1362026c33dd14187956b2d06120 /src/tilde_proc.cpp
parent0f217c715ecd9fc265b1c6a3d579b99ecf849139 (diff)
BODGE for finding procedure symbols
Related to a dependency graph race condition bug (THIS NEEDS TO BE FIXED)
Diffstat (limited to 'src/tilde_proc.cpp')
-rw-r--r--src/tilde_proc.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tilde_proc.cpp b/src/tilde_proc.cpp
index 7e751ac82..8cfc564a7 100644
--- a/src/tilde_proc.cpp
+++ b/src/tilde_proc.cpp
@@ -18,7 +18,7 @@ gb_internal TB_FunctionPrototype *cg_procedure_type_as_prototype(cgModule *m, Ty
return proto;
}
-gb_internal cgProcedure *cg_procedure_create(cgModule *m, Entity *entity, bool ignore_body=false) {
+gb_internal cgProcedure *cg_procedure_create(cgModule *m, Entity *entity, bool ignore_body) {
GB_ASSERT(entity != nullptr);
GB_ASSERT(entity->kind == Entity_Procedure);
if (!entity->Procedure.is_foreign) {
@@ -385,7 +385,7 @@ gb_internal WORKER_TASK_PROC(cg_procedure_compile_worker_proc) {
if (
- // string_starts_with(p->name, str_lit("bug@main")) ||
+ // string_starts_with(p->name, str_lit("runtime@_windows_default_alloc_or_resize")) ||
false
) {
emit_asm = true;
@@ -434,7 +434,8 @@ gb_internal void cg_procedure_generate(cgProcedure *p) {
if (
- // string_starts_with(p->name, str_lit("bug@main")) ||
+ // string_starts_with(p->name, str_lit("runtime@_windows_default_alloc")) ||
+ // p->name == str_lit("runtime@_windows_default_alloc_or_resize") ||
false
) { // IR Printing
TB_Arena *arena = tb_default_arena();