forked from OSchip/llvm-project
Darwin should use _setjmp/_longjmp instead of setjmp/longjmp.
llvm-svn: 26833
This commit is contained in:
parent
da2b6ee1d6
commit
b09a56f3a4
|
|
@ -50,6 +50,10 @@ X86TargetLowering::X86TargetLowering(TargetMachine &TM)
|
|||
setShiftAmountFlavor(Mask); // shl X, 32 == shl X, 0
|
||||
setStackPointerRegisterToSaveRestore(X86::ESP);
|
||||
|
||||
if (!TM.getSubtarget<X86Subtarget>().isTargetDarwin())
|
||||
// Darwin should use _setjmp/_longjmp instead of setjmp/longjmp.
|
||||
setUseUnderscoreSetJmpLongJmp(true);
|
||||
|
||||
// Add legal addressing mode scale values.
|
||||
addLegalAddressScale(8);
|
||||
addLegalAddressScale(4);
|
||||
|
|
|
|||
Loading…
Reference in New Issue