summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp b/llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp
index 4529aedc983..e2456c9320d 100644
--- a/llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp
+++ b/llvm/lib/Target/PowerPC/PowerPCBranchSelector.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) {
OpenPOWER on IntegriCloud