[lld] r274643 - [gardening] Switch back to auto. NFCI.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 6 10:41:56 PDT 2016
Author: davide
Date: Wed Jul 6 12:41:55 2016
New Revision: 274643
URL: http://llvm.org/viewvc/llvm-project?rev=274643&view=rev
Log:
[gardening] Switch back to auto. NFCI.
Pointed out by: Rui Ueyama.
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=274643&r1=274642&r2=274643&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Wed Jul 6 12:41:55 2016
@@ -585,9 +585,7 @@ void GnuHashTableSection<ELFT>::addSymbo
});
if (Mid == V.end())
return;
- for (std::vector<std::pair<SymbolBody *, size_t>>::iterator I = Mid,
- E = V.end();
- I != E; ++I) {
+ for (auto I = Mid, E = V.end(); I != E; ++I) {
SymbolBody *B = I->first;
size_t StrOff = I->second;
Symbols.push_back({B, StrOff, hashGnu(B->getName())});
More information about the llvm-commits
mailing list