diff options
| author | Sam Clegg <sbc@chromium.org> | 2018-05-30 18:07:52 +0000 |
|---|---|---|
| committer | Sam Clegg <sbc@chromium.org> | 2018-05-30 18:07:52 +0000 |
| commit | c729c1b47d21706a314c15fe8075dd6835a32618 (patch) | |
| tree | d98de057cff28c13d89ff5f117f2c3e2f22cfeae /lld/wasm/Writer.cpp | |
| parent | dff5b311af2462497796c2aff1b4d77fda33db6e (diff) | |
| download | bcm5719-llvm-c729c1b47d21706a314c15fe8075dd6835a32618.tar.gz bcm5719-llvm-c729c1b47d21706a314c15fe8075dd6835a32618.zip | |
[WebAssembly] Initial support for LTO
Differential Revision: https://reviews.llvm.org/D47162
llvm-svn: 333570
Diffstat (limited to 'lld/wasm/Writer.cpp')
| -rw-r--r-- | lld/wasm/Writer.cpp | 2 |
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); |

