summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-01 01:05:34 +0000
committerChris Lattner <sabre@nondot.org>2008-01-01 01:05:34 +0000
commitb0fb17fd34de0f45920a65f77dab3c98ccace7a1 (patch)
tree8d5a4a1a695bb3b5c6ee714426eff8000542d47a /llvm/lib
parent25568e4cef4e6aba878b74d3db51085abec59c53 (diff)
downloadbcm5719-llvm-b0fb17fd34de0f45920a65f77dab3c98ccace7a1.tar.gz
bcm5719-llvm-b0fb17fd34de0f45920a65f77dab3c98ccace7a1.zip
Fix a bug in my previous patch: refer to the impl not the pure virtual version. It's unclear why gcc would ever compile this...
llvm-svn: 45476
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.cpp2
-rw-r--r--llvm/lib/Target/X86/X86InstrInfo.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
index 9982f907b35..46cd4e69a84 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -132,7 +132,7 @@ unsigned PPCInstrInfo::isStoreToStackSlot(MachineInstr *MI,
MachineInstr *PPCInstrInfo::commuteInstruction(MachineInstr *MI) const {
// Normal instructions can be commuted the obvious way.
if (MI->getOpcode() != PPC::RLWIMI)
- return TargetInstrInfo::commuteInstruction(MI);
+ return TargetInstrInfoImpl::commuteInstruction(MI);
// Cannot commute if it has a non-zero rotate count.
if (MI->getOperand(3).getImm() != 0)
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp
index e12f646a883..10e594763e0 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.cpp
+++ b/llvm/lib/Target/X86/X86InstrInfo.cpp
@@ -575,7 +575,7 @@ MachineInstr *X86InstrInfo::commuteInstruction(MachineInstr *MI) const {
// Fallthrough intended.
}
default:
- return TargetInstrInfo::commuteInstruction(MI);
+ return TargetInstrInfoImpl::commuteInstruction(MI);
}
}
OpenPOWER on IntegriCloud