[lld] r355580 - [WebAssembly] Fix build after rL355577
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 20:20:04 PST 2019
Author: sbc
Date: Wed Mar 6 20:20:04 2019
New Revision: 355580
URL: http://llvm.org/viewvc/llvm-project?rev=355580&view=rev
Log:
[WebAssembly] Fix build after rL355577
Turns own that IsUsedInRegularObject is set for lazy (archive) symbols.
Differential Revision: https://reviews.llvm.org/D59074
Modified:
lld/trunk/wasm/Writer.cpp
Modified: lld/trunk/wasm/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Writer.cpp?rev=355580&r1=355579&r2=355580&view=diff
==============================================================================
--- lld/trunk/wasm/Writer.cpp (original)
+++ lld/trunk/wasm/Writer.cpp Wed Mar 6 20:20:04 2019
@@ -950,7 +950,7 @@ void Writer::assignSymtab() {
};
for (Symbol *Sym : Symtab->getSymbols())
- if (Sym->IsUsedInRegularObj)
+ if (!Sym->isLazy() && Sym->IsUsedInRegularObj)
AddSymbol(Sym);
for (ObjFile *File : Symtab->ObjectFiles) {
More information about the llvm-commits
mailing list