summaryrefslogtreecommitdiffstats
path: root/lld/wasm/Writer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/wasm/Writer.cpp')
-rw-r--r--lld/wasm/Writer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp
index 8e05a4d46f5..ee6056ab76d 100644
--- a/lld/wasm/Writer.cpp
+++ b/lld/wasm/Writer.cpp
@@ -715,6 +715,8 @@ void Writer::calculateImports() {
continue;
if (!Sym->isLive())
continue;
+ if (!Sym->IsUsedInRegularObj)
+ continue;
LLVM_DEBUG(dbgs() << "import: " << Sym->getName() << "\n");
ImportedSymbols.emplace_back(Sym);
OpenPOWER on IntegriCloud