[PATCH] D61855: Simplify SymbolTable::add{Defined,Undefined,...} functions.
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 13 08:07:52 PDT 2019
MaskRay added inline comments.
================
Comment at: lld/ELF/Symbols.h:384
// as a TLS symbol in one file and as a non-TLS symbol in other file.
- bool TlsMismatch = (Sym.Type == STT_TLS && S->Type != STT_TLS) ||
- (Sym.Type != STT_TLS && S->Type == STT_TLS);
+ if (Sym->SymbolKind != Symbol::PlaceholderKind && !Sym->isLazy() &&
+ !New->isLazy()) {
----------------
`Sym->isLazy()` can be deleted because an `isLazy()` symbol is `STT_NOTYPE`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61855/new/
https://reviews.llvm.org/D61855
More information about the llvm-commits
mailing list