forked from OSchip/llvm-project
[ELF] Remove dead code from SymbolTable::find
This commit is contained in:
parent
9eb71608ee
commit
89661a0e89
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue