Improve support for freestanding_wasm32

This commit is contained in:
gingerBill
2021-11-07 16:19:27 +00:00
parent e9c903f1ea
commit dc2edd3e79
7 changed files with 123 additions and 37 deletions

View File

@@ -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;