[llvm-commits] CVS: llvm/lib/Target/X86/X86CodeEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed May 3 10:21:44 PDT 2006
Changes in directory llvm/lib/Target/X86:
X86CodeEmitter.cpp updated: 1.101 -> 1.102
---
Log message:
inline a simple method
---
Diffs of the changes: (+7 -10)
X86CodeEmitter.cpp | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.101 llvm/lib/Target/X86/X86CodeEmitter.cpp:1.102
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.101 Wed May 3 12:10:41 2006
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp Wed May 3 12:21:32 2006
@@ -50,7 +50,6 @@
void emitInstruction(const MachineInstr &MI);
private:
- void emitBasicBlock(MachineBasicBlock &MBB);
void emitPCRelativeBlockAddress(MachineBasicBlock *MBB);
void emitPCRelativeValue(unsigned Address);
void emitGlobalAddressForCall(GlobalValue *GV, bool isTailCall);
@@ -84,8 +83,13 @@
BBRefs.clear();
MCE.startFunction(MF);
- for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I)
- emitBasicBlock(*I);
+ for (MachineFunction::iterator MBB = MF.begin(), E = MF.end();
+ MBB != E; ++MBB) {
+ MCE.StartMachineBasicBlock(MBB);
+ for (MachineBasicBlock::const_iterator I = MBB->begin(), E = MBB->end();
+ I != E; ++I)
+ emitInstruction(*I);
+ }
} while (MCE.finishFunction(MF));
// Resolve all forward branches now.
@@ -98,13 +102,6 @@
return false;
}
-void Emitter::emitBasicBlock(MachineBasicBlock &MBB) {
- MCE.StartMachineBasicBlock(&MBB);
- for (MachineBasicBlock::const_iterator I = MBB.begin(), E = MBB.end();
- I != E; ++I)
- emitInstruction(*I);
-}
-
/// emitPCRelativeValue - Emit a 32-bit PC relative address.
///
void Emitter::emitPCRelativeValue(unsigned Address) {
More information about the llvm-commits
mailing list