[LLD][ELF] - Remove the excessive condition. NFC.
There is no need to check that In.DynSymTab != nullptr, because `includeInDynsym` already checks for `!Config->HasDynSymTab` and `HasDynSymTab` is the pre-condition for In.DynSymTab creation. llvm-svn: 348143
This commit is contained in:
parent
1a6d6f053d
commit
89230f7bc2
|
@ -1661,7 +1661,7 @@ template <class ELFT> void Writer<ELFT>::finalizeSections() {
|
|||
if (In.SymTab)
|
||||
In.SymTab->addSymbol(Sym);
|
||||
|
||||
if (In.DynSymTab && Sym->includeInDynsym()) {
|
||||
if (Sym->includeInDynsym()) {
|
||||
In.DynSymTab->addSymbol(Sym);
|
||||
if (auto *File = dyn_cast_or_null<SharedFile<ELFT>>(Sym->File))
|
||||
if (File->IsNeeded && !Sym->isUndefined())
|
||||
|
|
Loading…
Reference in New Issue