mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-31 01:11:06 +00: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 analysis = {
|
||||||
let mut cx = LiveContext::new(&module);
|
let mut cx = LiveContext::new(&module);
|
||||||
cx.blacklist.insert("rust_eh_personality");
|
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() {
|
if let Some(section) = module.export_section() {
|
||||||
for (i, entry) in section.entries().iter().enumerate() {
|
for (i, entry) in section.entries().iter().enumerate() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user