From f11343e68e72f9a76ca938b2f586ccd4e705e4b1 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Tue, 7 Apr 2015 02:20:33 +0000 Subject: [PATCH] Use early continue. llvm-svn: 234278 --- lld/lib/ReaderWriter/ELF/ELFFile.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lld/lib/ReaderWriter/ELF/ELFFile.h b/lld/lib/ReaderWriter/ELF/ELFFile.h index 9a15cc215621..6ace47237161 100644 --- a/lld/lib/ReaderWriter/ELF/ELFFile.h +++ b/lld/lib/ReaderWriter/ELF/ELFFile.h @@ -746,16 +746,16 @@ template std::error_code ELFFile::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 *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 *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; }