[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:
George Rimar 2018-12-03 14:44:02 +00:00
parent 1a6d6f053d
commit 89230f7bc2
1 changed files with 1 additions and 1 deletions

View File

@ -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())