diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-03 14:30:32 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-03 14:30:32 +0100 |
| commit | 810dcfc6029f8380d53cc692367f3cce308894f6 (patch) | |
| tree | 4fcbc119098e3401073901c4144d6d43db869536 /src/llvm_backend.cpp | |
| parent | 14645b147f6185521dc9dfc80bd4ff63b08ecd21 (diff) | |
Remove debug `gb_printf_err` and replace with `debugf`
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index e2b4bb04a..bcc3cc0bf 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -6301,14 +6301,16 @@ lbValue lb_find_procedure_value_from_entity(lbModule *m, Entity *e) { return *found; } - gb_printf_err("%.*s\n", LIT(e->token.string)); - bool ignore_body = false; + lbModule *other_module = m; if (USE_SEPARATE_MODULES) { - lbModule *other_module = lb_pkg_module(m->gen, e->pkg); - ignore_body = other_module != m; + other_module = lb_pkg_module(m->gen, e->pkg); + } + if (other_module == m) { + debugf("Missing Procedure (lb_find_procedure_value_from_entity): %.*s", LIT(e->token.string)); } + ignore_body = other_module != m; lbProcedure *missing_proc = lb_create_procedure(m, e, ignore_body); if (!ignore_body) { |