[ELF] - Use early return. NFC.

This addresses forgotten review comment for r280067:
"[ELF] - Versionscript: support wildcards for extern "c++" tag."

llvm-svn: 280068
This commit is contained in:
George Rimar 2016-08-30 09:39:36 +00:00
parent 397cd87a69
commit 7af6452927
1 changed files with 10 additions and 9 deletions

View File

@ -676,8 +676,9 @@ template <class ELFT> void SymbolTable<ELFT>::scanVersionScript() {
// Handle wildcards.
for (size_t I = Config->VersionDefinitions.size() - 1; I != (size_t)-1; --I) {
VersionDefinition &V = Config->VersionDefinitions[I];
for (SymbolVersion &Sym : V.Globals)
if (hasWildcard(Sym.Name)) {
for (SymbolVersion &Sym : V.Globals) {
if (!hasWildcard(Sym.Name))
continue;
std::vector<SymbolBody *> All =
Sym.IsExternCpp ? findAllDemangled(Demangled, Sym.Name)
: findAll(Sym.Name);