[ELF] - Replace llvm::find_if with the loop. NFC.

Requested during post commit review.

llvm-svn: 335447
This commit is contained in:
George Rimar 2018-06-25 09:30:39 +00:00
parent facea6b4a6
commit 2051bd02a7
1 changed files with 3 additions and 4 deletions

View File

@ -160,10 +160,9 @@ template <class ELFT> void SymbolTable::addSymbolWrap(StringRef Name) {
return;
// Do not wrap the same symbol twice.
if (llvm::find_if(WrappedSymbols, [&](const WrappedSymbol &S) {
return S.Sym == Sym;
}) != WrappedSymbols.end())
return;
for (const WrappedSymbol &S : WrappedSymbols)
if (S.Sym == Sym)
return;
Symbol *Real = addUndefined<ELFT>(Saver.save("__real_" + Name));
Symbol *Wrap = addUndefined<ELFT>(Saver.save("__wrap_" + Name));