aboutsummaryrefslogtreecommitdiff
path: root/lld/wasm/MarkLive.cpp
diff options
context:
space:
mode:
authorNicholas Wilson <nicholas@nicholaswilson.me.uk>2018-04-20 17:09:18 +0000
committerNicholas Wilson <nicholas@nicholaswilson.me.uk>2018-04-20 17:09:18 +0000
commit6c7fe30a1c9012d9881d0fe2faaf6fdfbf956359 (patch)
tree04bd393dc24403e82177a23ccaf6660afa950573 /lld/wasm/MarkLive.cpp
parentef90ff36daa5f244357e29dd28e7d5092d01be76 (diff)
downloadllvm-6c7fe30a1c9012d9881d0fe2faaf6fdfbf956359.zip
llvm-6c7fe30a1c9012d9881d0fe2faaf6fdfbf956359.tar.gz
llvm-6c7fe30a1c9012d9881d0fe2faaf6fdfbf956359.tar.bz2
[WebAssembly] Implement --print-gc-sections for synthetic functions
Enables cleaning up confusion between which name variables are mangled and which are unmangled, and --print-gc-sections then excersises and tests that. Differential Revision: https://reviews.llvm.org/D44440 llvm-svn: 330449
Diffstat (limited to 'lld/wasm/MarkLive.cpp')
-rw-r--r--lld/wasm/MarkLive.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lld/wasm/MarkLive.cpp b/lld/wasm/MarkLive.cpp
index 9b72697..38ffbcb 100644
--- a/lld/wasm/MarkLive.cpp
+++ b/lld/wasm/MarkLive.cpp
@@ -105,5 +105,8 @@ void lld::wasm::markLive() {
if (!C->Live)
message("removing unused section " + toString(C));
}
+ for (InputChunk *C : Symtab->SyntheticFunctions)
+ if (!C->Live)
+ message("removing unused section " + toString(C));
}
}