diff options
| author | Sam Clegg <sbc@chromium.org> | 2019-03-08 21:10:48 +0000 |
|---|---|---|
| committer | Sam Clegg <sbc@chromium.org> | 2019-03-08 21:10:48 +0000 |
| commit | d15a4154a8b7391941e0592427588b0a1b229e65 (patch) | |
| tree | 89df08dc7225e6ae2da438f18d07c4a4f0ee2d42 /lld/wasm/Writer.cpp | |
| parent | c12f159788dcc791e4a415352031fb761f31c3ec (diff) | |
| download | bcm5719-llvm-d15a4154a8b7391941e0592427588b0a1b229e65.tar.gz bcm5719-llvm-d15a4154a8b7391941e0592427588b0a1b229e65.zip | |
[WebAssembly] Don't mark lazy symbols as `IsUsedInRegularObj`
This matches the ELF does. Update the comment in ELF/Symbols.h and
duplicate it in wasm/Symbols.h
This a followup on rL355580 and rL355577.
Differential Revision: https://reviews.llvm.org/D59075
llvm-svn: 355737
Diffstat (limited to 'lld/wasm/Writer.cpp')
| -rw-r--r-- | lld/wasm/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp index f5ff3023a29..0082ae3a48d 100644 --- a/lld/wasm/Writer.cpp +++ b/lld/wasm/Writer.cpp @@ -950,7 +950,7 @@ void Writer::assignSymtab() { }; for (Symbol *Sym : Symtab->getSymbols()) - if (!Sym->isLazy() && Sym->IsUsedInRegularObj) + if (Sym->IsUsedInRegularObj) AddSymbol(Sym); for (ObjFile *File : Symtab->ObjectFiles) { |

