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,16 +746,16 @@ 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) {
ELFDefinedAtom<ELFT> *atom = createDefinedAtom(
symbolName, *sectionName, &**si, section, symbolData,
_references.size(), _references.size(), _references);
atom->setOrdinal(++_ordinal);
if (addAtoms)
_definedAtoms._atoms.push_back(atom);
else
atomsForSection[*sectionName].push_back(atom);
}
if (symbol->getBinding() != llvm::ELF::STB_GLOBAL)
continue;
ELFDefinedAtom<ELFT> *atom = createDefinedAtom(
symbolName, *sectionName, &**si, section, symbolData,
_references.size(), _references.size(), _references);
atom->setOrdinal(++_ordinal);
if (addAtoms)
_definedAtoms._atoms.push_back(atom);
else
atomsForSection[*sectionName].push_back(atom);
continue;
}