mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
wasm: Move some of the DCE code from CodeSection to WasmModule
This commit is contained in:
parent
dfda992d93
commit
c00b43c36b
6 changed files with 98 additions and 116 deletions
|
@ -151,7 +151,7 @@ fn compile_roc_to_wasm_bytes<'a, T: Wasm32Result>(
|
|||
index: init_refcount_idx,
|
||||
});
|
||||
|
||||
module.remove_dead_preloads(env.arena, called_preload_fns);
|
||||
module.eliminate_dead_code(env.arena, called_preload_fns);
|
||||
|
||||
let mut app_module_bytes = std::vec::Vec::with_capacity(module.size());
|
||||
module.serialize(&mut app_module_bytes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue