[llvm-commits] CVS: llvm/include/llvm/Target/TargetInstrInfo.h

Chris Lattner sabre at nondot.org
Fri Oct 13 14:02:41 PDT 2006



Changes in directory llvm/include/llvm/Target:

TargetInstrInfo.h updated: 1.93 -> 1.94
---
Log message:

it is easier to implement these when they are virtual


---
Diffs of the changes:  (+4 -4)

 TargetInstrInfo.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/include/llvm/Target/TargetInstrInfo.h
diff -u llvm/include/llvm/Target/TargetInstrInfo.h:1.93 llvm/include/llvm/Target/TargetInstrInfo.h:1.94
--- llvm/include/llvm/Target/TargetInstrInfo.h:1.93	Fri Oct 13 15:59:31 2006
+++ llvm/include/llvm/Target/TargetInstrInfo.h	Fri Oct 13 16:02:27 2006
@@ -294,7 +294,7 @@
   
   /// RemoveBranch - Remove the branching code at the end of the specific MBB.
   /// this is only invoked in cases where AnalyzeBranch returns success.
-  void RemoveBranch(MachineBasicBlock &MBB) const {
+  virtual void RemoveBranch(MachineBasicBlock &MBB) const {
     assert(0 && "Target didn't implement TargetInstrInfo::RemoveBranch!"); 
   }
   
@@ -302,9 +302,9 @@
   /// MachineBasicBlock.  This operands to this method are the same as those
   /// returned by AnalyzeBranch.  This nis invoked in cases where AnalyzeBranch
   /// returns success.
-  void InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
-                    MachineBasicBlock *FBB,
-                    const std::vector<MachineOperand> &Cond) const {
+  virtual void InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
+                            MachineBasicBlock *FBB,
+                            const std::vector<MachineOperand> &Cond) const {
     assert(0 && "Target didn't implement TargetInstrInfo::RemoveBranch!"); 
   }
   






More information about the llvm-commits mailing list