Darwin should use _setjmp/_longjmp instead of setjmp/longjmp.

llvm-svn: 26833
This commit is contained in:
Evan Cheng 2006-03-17 20:31:41 +00:00
parent da2b6ee1d6
commit b09a56f3a4
1 changed files with 4 additions and 0 deletions

View File

@ -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);