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:
Rui Ueyama 2018-03-08 01:22:30 +00:00
parent 7f81418183
commit e66d7a798f
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}