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/ELF/Symbols.h | |
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/ELF/Symbols.h')
-rw-r--r-- | lld/ELF/Symbols.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index fc48b09bace..4b722b01257 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -109,8 +109,8 @@ public: // True if the symbol was used for linking and thus need to be added to the // output file's symbol table. This is true for all symbols except for - // unreferenced DSO symbols and bitcode symbols that are unreferenced except - // by other bitcode objects. + // unreferenced DSO symbols, lazy (archive) symbols, and bitcode symbols that + // are unreferenced except by other bitcode objects. unsigned IsUsedInRegularObj : 1; // If this flag is true and the symbol has protected or default visibility, it |