aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetInstrInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-13 21:02:27 +0000
committerChris Lattner <sabre@nondot.org>2006-10-13 21:02:27 +0000
commitd51c87f22f9b666204b27b301af771bc5badc142 (patch)
tree816972f5f5ac7caf89620b086f3cfb3b00fd4067 /include/llvm/Target/TargetInstrInfo.h
parent5f1e4dbdf77de6887441af20857967a3d24c01ab (diff)
downloadexternal_llvm-d51c87f22f9b666204b27b301af771bc5badc142.zip
external_llvm-d51c87f22f9b666204b27b301af771bc5badc142.tar.gz
external_llvm-d51c87f22f9b666204b27b301af771bc5badc142.tar.bz2
it is easier to implement these when they are virtual
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetInstrInfo.h')
-rw-r--r--include/llvm/Target/TargetInstrInfo.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index bfe6ad7..35be604 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -294,7 +294,7 @@ public:
/// 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 @@ public:
/// 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!");
}