Use a range loop. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222730 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2014-11-25 06:16:27 +00:00
parent 8665715bdd
commit 95f8931c55

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