mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-28 12:32:37 +03:00
Merge pull request #984 from alexcrichton/more-gc
Discard internal LLD symbols during gc
This commit is contained in:
commit
73740ba6ab
@ -53,6 +53,9 @@ fn run(config: &mut Config, module: &mut Module) {
|
||||
let analysis = {
|
||||
let mut cx = LiveContext::new(&module);
|
||||
cx.blacklist.insert("rust_eh_personality");
|
||||
cx.blacklist.insert("__indirect_function_table");
|
||||
cx.blacklist.insert("__heap_base");
|
||||
cx.blacklist.insert("__data_end");
|
||||
|
||||
if let Some(section) = module.export_section() {
|
||||
for (i, entry) in section.entries().iter().enumerate() {
|
||||
|
Loading…
Reference in New Issue
Block a user