mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
Unbreak x86-64 jumptable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b623ce9128
commit
ed2fc71610
@ -506,6 +506,10 @@ 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);
|
||||||
|
if (Subtarget->isPICStyleRIPRel())
|
||||||
|
O << '-' << TAI->getPrivateGlobalPrefix() << "JTI" << getFunctionNumber()
|
||||||
|
<< '_' << uid << '\n';
|
||||||
|
else
|
||||||
O << '-' << computePICLabel(getFunctionNumber(), TAI, Subtarget) << '\n';
|
O << '-' << computePICLabel(getFunctionNumber(), TAI, Subtarget) << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user