Use a range loop. NFC.

llvm-svn: 222730
This commit is contained in:
Rafael Espindola 2014-11-25 06:16:27 +00:00
parent c84f608b08
commit 8f14471e81
1 changed files with 3 additions and 4 deletions

View File

@ -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';
}
}