From 95f8931c553485203bc0496972756ae25dfdb32a Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 25 Nov 2014 06:16:27 +0000 Subject: [PATCH] Use a range loop. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222730 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Linker/LinkModules.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 037b1b86453..504073887c3 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -75,12 +75,11 @@ public: /// Dump out the type map for debugging purposes. void dump() const { - for (DenseMap::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'; } }