diff options
Diffstat (limited to 'lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp')
-rw-r--r-- | lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp index 8b711fd54e..bb6fc2f2df 100644 --- a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp @@ -369,7 +369,7 @@ void ARMAsmPrinter::printOperand(const MachineInstr *MI, int OpNum, break; } case MachineOperand::MO_MachineBasicBlock: - O << *GetMBBSymbol(MO.getMBB()->getNumber()); + O << *MO.getMBB()->getSymbol(OutContext); return; case MachineOperand::MO_GlobalAddress: { bool isCallOp = Modifier && !strcmp(Modifier, "call"); @@ -948,16 +948,16 @@ void ARMAsmPrinter::printJTBlockOperand(const MachineInstr *MI, int OpNum) { if (UseSet && isNew) { O << MAI->getSetDirective() << ' ' << *GetARMSetPICJumpTableLabel2(JTI, MO2.getImm(), MBB) << ',' - << *GetMBBSymbol(MBB->getNumber()) << '-' << *JTISymbol << '\n'; + << *MBB->getSymbol(OutContext) << '-' << *JTISymbol << '\n'; } O << JTEntryDirective << ' '; if (UseSet) O << *GetARMSetPICJumpTableLabel2(JTI, MO2.getImm(), MBB); else if (TM.getRelocationModel() == Reloc::PIC_) - O << *GetMBBSymbol(MBB->getNumber()) << '-' << *JTISymbol; + O << *MBB->getSymbol(OutContext) << '-' << *JTISymbol; else - O << *GetMBBSymbol(MBB->getNumber()); + O << *MBB->getSymbol(OutContext); if (i != e-1) O << '\n'; @@ -989,9 +989,9 @@ void ARMAsmPrinter::printJT2BlockOperand(const MachineInstr *MI, int OpNum) { O << MAI->getData16bitsDirective(); if (ByteOffset || HalfWordOffset) - O << '(' << *GetMBBSymbol(MBB->getNumber()) << "-" << *JTISymbol << ")/2"; + O << '(' << *MBB->getSymbol(OutContext) << "-" << *JTISymbol << ")/2"; else - O << "\tb.w " << *GetMBBSymbol(MBB->getNumber()); + O << "\tb.w " << *MBB->getSymbol(OutContext); if (i != e-1) O << '\n'; |