forked from OSchip/llvm-project
Return early. NFC.
We don't need to handle an object file having more than one symbol table, so as soon as we find the first one, we can process it and then return from the function. llvm-svn: 326977
This commit is contained in:
parent
7f81418183
commit
e66d7a798f
|
@ -1164,6 +1164,7 @@ template <class ELFT> void LazyObjFile::addElfSymbols() {
|
|||
if (Sym.st_shndx != SHN_UNDEF)
|
||||
Symtab->addLazyObject<ELFT>(CHECK(Sym.getName(StringTable), this),
|
||||
*this);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue