forked from OSchip/llvm-project
[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:
parent
397cd87a69
commit
7af6452927
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue