Simplify. NFC.
authorRui Ueyama <ruiu@google.com>
Sat, 16 Jul 2016 03:12:16 +0000 (03:12 +0000)
committerRui Ueyama <ruiu@google.com>
Sat, 16 Jul 2016 03:12:16 +0000 (03:12 +0000)
llvm-svn: 275670

lld/ELF/SymbolTable.cpp

index eccf35c..5f46ab1 100644 (file)
@@ -611,14 +611,11 @@ template <class ELFT> void SymbolTable<ELFT>::scanVersionScript() {
 
   for (size_t I = Config->SymbolVersions.size() - 1; I != (size_t)-1; --I) {
     Version &V = Config->SymbolVersions[I];
-    for (StringRef Name : V.Globals) {
-      if (!hasWildcard(Name))
-        continue;
-
-      for (SymbolBody *B : findAll(Name))
-        if (B->symbol()->VersionId == Config->DefaultSymbolVersion)
-          B->symbol()->VersionId = V.Id;
-    }
+    for (StringRef Name : V.Globals)
+      if (hasWildcard(Name))
+        for (SymbolBody *B : findAll(Name))
+          if (B->symbol()->VersionId == Config->DefaultSymbolVersion)
+            B->symbol()->VersionId = V.Id;
   }
 }