[lld] r195662 - Use range-based for loop.
Rui Ueyama
ruiu at google.com
Mon Nov 25 09:09:27 PST 2013
Author: ruiu
Date: Mon Nov 25 11:09:27 2013
New Revision: 195662
URL: http://llvm.org/viewvc/llvm-project?rev=195662&view=rev
Log:
Use range-based for loop.
Modified:
lld/trunk/lib/Core/SymbolTable.cpp
Modified: lld/trunk/lib/Core/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/SymbolTable.cpp?rev=195662&r1=195661&r2=195662&view=diff
==============================================================================
--- lld/trunk/lib/Core/SymbolTable.cpp (original)
+++ lld/trunk/lib/Core/SymbolTable.cpp Mon Nov 25 11:09:27 2013
@@ -338,9 +338,8 @@ unsigned int SymbolTable::size() {
}
void SymbolTable::undefines(std::vector<const UndefinedAtom *> &undefs) {
- for (NameToAtom::iterator it = _nameTable.begin(),
- end = _nameTable.end(); it != end; ++it) {
- const Atom *atom = it->second;
+ for (auto it : _nameTable) {
+ const Atom *atom = it.second;
assert(atom != nullptr);
if (const auto undef = dyn_cast<const UndefinedAtom>(atom)) {
AtomToAtom::iterator pos = _replacedAtoms.find(undef);
More information about the llvm-commits
mailing list