[llvm-commits] [llvm] r158701 - /llvm/trunk/lib/Target/Mips/MipsCodeEmitter.cpp
Akira Hatanaka
ahatanaka at mips.com
Mon Jun 18 20:39:46 PDT 2012
Author: ahatanak
Date: Mon Jun 18 22:39:45 2012
New Revision: 158701
URL: http://llvm.org/viewvc/llvm-project?rev=158701&view=rev
Log:
Use MachineBasicBlock::instr_iterator instead of MachineBasicBlock::iterator in
MipsCodeEmitter.cpp.
Modified:
llvm/trunk/lib/Target/Mips/MipsCodeEmitter.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsCodeEmitter.cpp?rev=158701&r1=158700&r2=158701&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsCodeEmitter.cpp Mon Jun 18 22:39:45 2012
@@ -145,8 +145,8 @@
for (MachineFunction::iterator MBB = MF.begin(), E = MF.end();
MBB != E; ++MBB){
MCE.StartMachineBasicBlock(MBB);
- for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB->end();
- I != E; ++I)
+ for (MachineBasicBlock::instr_iterator I = MBB->instr_begin(),
+ E = MBB->instr_end(); I != E; ++I)
emitInstruction(*I);
}
} while (MCE.finishFunction(MF));
More information about the llvm-commits
mailing list