mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
Workaround broken jump tables on x86-64 COFF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111792 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c6a39aa5cd
commit
3464cec4d8
@ -20,6 +20,7 @@ MCAsmInfoCOFF::MCAsmInfoCOFF() {
|
||||
GlobalPrefix = "_";
|
||||
COMMDirectiveAlignmentIsInBytes = false;
|
||||
HasLCOMMDirective = true;
|
||||
HasSetDirective = false;
|
||||
HasDotTypeDotSizeDirective = false;
|
||||
HasSingleParameterDotFile = false;
|
||||
PrivateGlobalPrefix = "L"; // Prefix for private global symbols
|
||||
|
@ -1029,6 +1029,12 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM)
|
||||
maxStoresPerMemmove = 3; // For @llvm.memmove -> sequence of stores
|
||||
setPrefLoopAlignment(16);
|
||||
benefitFromCodePlacementOpt = true;
|
||||
|
||||
// FIXME: Jump tables are currently broken for 64 bit COFF.
|
||||
// See PR7960.
|
||||
if (Subtarget->is64Bit() && Subtarget->isTargetCOFF()) {
|
||||
DisableJumpTables = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user