[ELF] Remove dead code from SymbolTable::find

This commit is contained in:
Fangrui Song 2021-12-14 22:41:52 -08:00
parent 9eb71608ee
commit 89661a0e89
1 changed files with 1 additions and 4 deletions

View File

@ -105,10 +105,7 @@ Symbol *SymbolTable::find(StringRef name) {
auto it = symMap.find(CachedHashStringRef(name));
if (it == symMap.end())
return nullptr;
Symbol *sym = symVector[it->second];
if (sym->isPlaceholder())
return nullptr;
return sym;
return symVector[it->second];
}
// A version script/dynamic list is only meaningful for a Defined symbol.