[llvm] r208218 - Use range loop.
Rafael Espindola
rafael.espindola at gmail.com
Wed May 7 07:53:32 PDT 2014
Author: rafael
Date: Wed May 7 09:53:32 2014
New Revision: 208218
URL: http://llvm.org/viewvc/llvm-project?rev=208218&view=rev
Log:
Use range loop.
Modified:
llvm/trunk/lib/Target/Mips/MipsMachineFunction.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsMachineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsMachineFunction.cpp?rev=208218&r1=208217&r2=208218&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsMachineFunction.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsMachineFunction.cpp Wed May 7 09:53:32 2014
@@ -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 {
More information about the llvm-commits
mailing list