summaryrefslogtreecommitdiffstats
path: root/lld/wasm/MarkLive.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-02-02 22:59:56 +0000
committerSam Clegg <sbc@chromium.org>2018-02-02 22:59:56 +0000
commitf0d433d0c6da4b48ae2d70ee30c910bef630c69f (patch)
tree399d637754d037ab46fb105b88b903e9ebf5d792 /lld/wasm/MarkLive.cpp
parent37713073d65e473b6306b347a3f6e892128e27ca (diff)
downloadbcm5719-llvm-f0d433d0c6da4b48ae2d70ee30c910bef630c69f.tar.gz
bcm5719-llvm-f0d433d0c6da4b48ae2d70ee30c910bef630c69f.zip
[WebAssembly] Refactor linker-generated symbols. NFC.
Group all synthetic symbols in the in single struct to match the ELF linker. This change is part of a larger change to add more linker symbols such as `_end` and `_edata`. Differential Revision: https://reviews.llvm.org/D42866 llvm-svn: 324157
Diffstat (limited to 'lld/wasm/MarkLive.cpp')
-rw-r--r--lld/wasm/MarkLive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/wasm/MarkLive.cpp b/lld/wasm/MarkLive.cpp
index 9bd2a83c013..7a0a9e9724d 100644
--- a/lld/wasm/MarkLive.cpp
+++ b/lld/wasm/MarkLive.cpp
@@ -52,7 +52,7 @@ void lld::wasm::markLive() {
// Add GC root symbols.
if (!Config->Entry.empty())
Enqueue(Symtab->find(Config->Entry));
- Enqueue(Config->CtorSymbol);
+ Enqueue(WasmSym::CallCtors);
// By default we export all non-hidden, so they are gc roots too
for (Symbol *Sym : Symtab->getSymbols())
OpenPOWER on IntegriCloud