diff options
Diffstat (limited to 'lib/Target/PowerPC/PPCCodeEmitter.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCCodeEmitter.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPCCodeEmitter.cpp b/lib/Target/PowerPC/PPCCodeEmitter.cpp index 8bd92732c5..798eb9fa08 100644 --- a/lib/Target/PowerPC/PPCCodeEmitter.cpp +++ b/lib/Target/PowerPC/PPCCodeEmitter.cpp @@ -195,11 +195,11 @@ int PPCCodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) { Reloc, MO.getSymbolName(), 0); } else if (MO.isConstantPoolIndex()) { R = MachineRelocation::getConstPool(MCE.getCurrentPCOffset(), - Reloc, MO.getConstantPoolIndex(), 0); + Reloc, MO.getIndex(), 0); } else { assert(MO.isJumpTableIndex()); R = MachineRelocation::getJumpTable(MCE.getCurrentPCOffset(), - Reloc, MO.getJumpTableIndex(), 0); + Reloc, MO.getIndex(), 0); } // If in PIC mode, we need to encode the negated address of the @@ -223,8 +223,7 @@ int PPCCodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) { else // BCC instruction Reloc = PPC::reloc_pcrel_bcx; MCE.addRelocation(MachineRelocation::getBB(MCE.getCurrentPCOffset(), - Reloc, - MO.getMachineBasicBlock())); + Reloc, MO.getMBB())); } else { cerr << "ERROR: Unknown type of MachineOperand: " << MO << "\n"; abort(); |