forked from OSchip/llvm-project
Workaround broken jump tables on x86-64 COFF.
llvm-svn: 111792
This commit is contained in:
parent
c3847a8134
commit
e87231232a
|
@ -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…
Reference in New Issue