OSDN Git Service

Use range loop.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 7 May 2014 14:53:32 +0000 (14:53 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 7 May 2014 14:53:32 +0000 (14:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208218 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsMachineFunction.cpp

index 96c1f74..e30302e 100644 (file)
@@ -65,9 +65,8 @@ MipsFunctionInfo::~MipsFunctionInfo() {
        ++I)
     delete I->getValue();
 
-  for (ValueMap<const GlobalValue *, const MipsCallEntry *>::iterator
-       I = GlobalCallEntries.begin(), E = GlobalCallEntries.end(); I != E; ++I)
-    delete I->second;
+  for (const auto &Entry : GlobalCallEntries)
+    delete Entry.second;
 }
 
 bool MipsFunctionInfo::globalBaseRegSet() const {