Use early continue.

llvm-svn: 234278
This commit is contained in:
Rui Ueyama 2015-04-07 02:20:33 +00:00
parent add2a66c00
commit f11343e68e
1 changed files with 10 additions and 10 deletions

View File

@ -746,7 +746,8 @@ template <class ELFT> std::error_code ELFFile<ELFT>::createAtoms() {
// merged away as well as these symbols have to be part of symbol
// resolution
if (isMergeableStringSection(section)) {
if (symbol->getBinding() == llvm::ELF::STB_GLOBAL) {
if (symbol->getBinding() != llvm::ELF::STB_GLOBAL)
continue;
ELFDefinedAtom<ELFT> *atom = createDefinedAtom(
symbolName, *sectionName, &**si, section, symbolData,
_references.size(), _references.size(), _references);
@ -755,7 +756,6 @@ template <class ELFT> std::error_code ELFFile<ELFT>::createAtoms() {
_definedAtoms._atoms.push_back(atom);
else
atomsForSection[*sectionName].push_back(atom);
}
continue;
}