aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-11-07 16:19:27 +0000
committergingerBill <bill@gingerbill.org>2021-11-07 16:19:27 +0000
commitdc2edd3e7904d76bd6e4e4eb02e27a1f3cb4b305 (patch)
tree4ad3bff8503be9ae9a257a506dc205932c07cab4 /src/llvm_backend.cpp
parente9c903f1ea480b9f873c81c4acc43fcb1e437d48 (diff)
Improve support for `freestanding_wasm32`
Diffstat (limited to 'src/llvm_backend.cpp')
-rw-r--r--src/llvm_backend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp
index c002bfc5e..e468f3032 100644
--- a/src/llvm_backend.cpp
+++ b/src/llvm_backend.cpp
@@ -1676,6 +1676,7 @@ void lb_generate_code(lbGenerator *gen) {
lbModule *m = gen->modules.entries[i].value;
lb_run_remove_unused_function_pass(m);
+ lb_run_remove_unused_globals_pass(m);
auto wd = gb_alloc_item(permanent_allocator(), lbLLVMModulePassWorkerData);
wd->m = m;