summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCBranchSelector.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-08-17 04:58:50 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-08-17 04:58:50 +0000
commit363dd073202c40d019415719bfeaf9a40c9e1cac (patch)
tree319a7921fd6a6831a1594e4dd57a5cfc267a2e6c /lib/Target/PowerPC/PPCBranchSelector.cpp
parentadde6994ac8b29ae75ea9edad310c673dfbb96ec (diff)
downloadllvm-363dd073202c40d019415719bfeaf9a40c9e1cac.tar.gz
llvm-363dd073202c40d019415719bfeaf9a40c9e1cac.tar.bz2
llvm-363dd073202c40d019415719bfeaf9a40c9e1cac.tar.xz
PowerPCInstrInfo has gone away, PPC32 and PPC64 share opcodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCBranchSelector.cpp')
-rw-r--r--lib/Target/PowerPC/PPCBranchSelector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCBranchSelector.cpp b/lib/Target/PowerPC/PPCBranchSelector.cpp
index 4529aedc98..e2456c9320 100644
--- a/lib/Target/PowerPC/PPCBranchSelector.cpp
+++ b/lib/Target/PowerPC/PPCBranchSelector.cpp
@@ -19,6 +19,7 @@
#include "PowerPC.h"
#include "PowerPCInstrBuilder.h"
#include "PowerPCInstrInfo.h"
+#include "PPC32InstrInfo.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "Support/Debug.h"
@@ -104,7 +105,7 @@ namespace {
int Displacement = OffsetMap[trueMBB] - ByteCount;
unsigned Opcode = MBBI->getOperand(1).getImmedValue();
- unsigned Inverted = PowerPCInstrInfo::invertPPCBranchOpcode(Opcode);
+ unsigned Inverted = PPC32InstrInfo::invertPPCBranchOpcode(Opcode);
MachineInstr *MI = MBBI;
if (Displacement >= -32768 && Displacement <= 32767) {