1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Unbreak x86-64 jumptable.

llvm-svn: 43955
This commit is contained in:
Evan Cheng 2007-11-09 19:11:23 +00:00
parent dcc6077439
commit 946afd2f6c

View File

@ -506,7 +506,11 @@ void X86ATTAsmPrinter::printPICJumpTableSetLabel(unsigned uid,
O << TAI->getSetDirective() << ' ' << TAI->getPrivateGlobalPrefix() O << TAI->getSetDirective() << ' ' << TAI->getPrivateGlobalPrefix()
<< getFunctionNumber() << '_' << uid << "_set_" << MBB->getNumber() << ','; << getFunctionNumber() << '_' << uid << "_set_" << MBB->getNumber() << ',';
printBasicBlockLabel(MBB, false, false); printBasicBlockLabel(MBB, false, false);
O << '-' << computePICLabel(getFunctionNumber(), TAI, Subtarget) << '\n'; if (Subtarget->isPICStyleRIPRel())
O << '-' << TAI->getPrivateGlobalPrefix() << "JTI" << getFunctionNumber()
<< '_' << uid << '\n';
else
O << '-' << computePICLabel(getFunctionNumber(), TAI, Subtarget) << '\n';
} }
void X86ATTAsmPrinter::printPICLabel(const MachineInstr *MI, unsigned Op) { void X86ATTAsmPrinter::printPICLabel(const MachineInstr *MI, unsigned Op) {