PowerPCInstrInfo has gone away, PPC32 and PPC64 share opcodes.
authorMisha Brukman <brukman+llvm@gmail.com>
Tue, 17 Aug 2004 04:58:50 +0000 (04:58 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Tue, 17 Aug 2004 04:58:50 +0000 (04:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15852 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCBranchSelector.cpp

index 4529aedc9831c8d9ad100559c04ce2d67b9927bf..e2456c9320df28c37838bf0684afdcd83e699386 100644 (file)
@@ -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) {