diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-25 06:16:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-25 06:16:27 +0000 |
commit | 8f14471e81a2719cbc20a0ff2f5a9b96d9f501c9 (patch) | |
tree | 224649fdada2816c10861428fa39b362aecc35bc /llvm/lib/Linker | |
parent | c84f608b08370550f11d2253aca031bbbd7a4578 (diff) | |
download | bcm5719-llvm-8f14471e81a2719cbc20a0ff2f5a9b96d9f501c9.tar.gz bcm5719-llvm-8f14471e81a2719cbc20a0ff2f5a9b96d9f501c9.zip |
Use a range loop. NFC.
llvm-svn: 222730
Diffstat (limited to 'llvm/lib/Linker')
-rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index 037b1b86453..504073887c3 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/lib/Linker/LinkModules.cpp @@ -75,12 +75,11 @@ public: /// Dump out the type map for debugging purposes. void dump() const { - for (DenseMap<Type*, Type*>::const_iterator - I = MappedTypes.begin(), E = MappedTypes.end(); I != E; ++I) { + for (auto &Pair : MappedTypes) { dbgs() << "TypeMap: "; - I->first->print(dbgs()); + Pair.first->print(dbgs()); dbgs() << " => "; - I->second->print(dbgs()); + Pair.second->print(dbgs()); dbgs() << '\n'; } } |