commit | c729c1b47d21706a314c15fe8075dd6835a32618 | [log] [tgz] |
---|---|---|
author | Sam Clegg <sbc@chromium.org> | Wed May 30 18:07:52 2018 +0000 |
committer | Sam Clegg <sbc@chromium.org> | Wed May 30 18:07:52 2018 +0000 |
tree | d98de057cff28c13d89ff5f117f2c3e2f22cfeae | |
parent | dff5b311af2462497796c2aff1b4d77fda33db6e [diff] [blame] |
[WebAssembly] Initial support for LTO Differential Revision: https://reviews.llvm.org/D47162 llvm-svn: 333570
diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp index 8e05a4d..ee6056a 100644 --- a/lld/wasm/Writer.cpp +++ b/lld/wasm/Writer.cpp
@@ -715,6 +715,8 @@ continue; if (!Sym->isLive()) continue; + if (!Sym->IsUsedInRegularObj) + continue; LLVM_DEBUG(dbgs() << "import: " << Sym->getName() << "\n"); ImportedSymbols.emplace_back(Sym);