summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/SymbolTable.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-11-25 17:09:27 +0000
committerRui Ueyama <ruiu@google.com>2013-11-25 17:09:27 +0000
commit17e899c967fef79d6f3ae3674083884b8ced48d4 (patch)
treee45e7a1cad7111f06f2937026fde668fc7c441af /lld/lib/Core/SymbolTable.cpp
parent5a3804f9c88fb833ea91eb4c95f2b3c3be3539dc (diff)
downloadbcm5719-llvm-17e899c967fef79d6f3ae3674083884b8ced48d4.tar.gz
bcm5719-llvm-17e899c967fef79d6f3ae3674083884b8ced48d4.zip
Use range-based for loop.
llvm-svn: 195662
Diffstat (limited to 'lld/lib/Core/SymbolTable.cpp')
-rw-r--r--lld/lib/Core/SymbolTable.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/lib/Core/SymbolTable.cpp b/lld/lib/Core/SymbolTable.cpp
index 325c5ffd166..49331345209 100644
--- a/lld/lib/Core/SymbolTable.cpp
+++ b/lld/lib/Core/SymbolTable.cpp
@@ -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);
OpenPOWER on IntegriCloud