[llvm-commits] CVS: llvm/lib/CodeGen/MachineBasicBlock.cpp

Alkis Evlogimenos alkis at niobe.cs.uiuc.edu
Mon Feb 23 12:37:01 PST 2004


Changes in directory llvm/lib/CodeGen:

MachineBasicBlock.cpp updated: 1.8 -> 1.9

---
Log message:

Use MachineBasicBlock::getParent().


---
Diffs of the changes:  (+1 -2)

Index: llvm/lib/CodeGen/MachineBasicBlock.cpp
diff -u llvm/lib/CodeGen/MachineBasicBlock.cpp:1.8 llvm/lib/CodeGen/MachineBasicBlock.cpp:1.9
--- llvm/lib/CodeGen/MachineBasicBlock.cpp:1.8	Mon Feb 23 12:14:48 2004
+++ llvm/lib/CodeGen/MachineBasicBlock.cpp	Mon Feb 23 12:36:38 2004
@@ -60,8 +60,7 @@
 
 MachineBasicBlock::iterator MachineBasicBlock::getFirstTerminator()
 {
-  const TargetInstrInfo& TII = MachineFunction::get(
-    getBasicBlock()->getParent()).getTarget().getInstrInfo();
+  const TargetInstrInfo& TII = getParent()->getTarget().getInstrInfo();
   iterator I = end();
   while (I != begin() && TII.isTerminatorInstr((--I)->getOpcode()));
   if (I != end() && !TII.isTerminatorInstr(I->getOpcode())) ++I;





More information about the llvm-commits mailing list