mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
Darwin should use _setjmp/_longjmp instead of setjmp/longjmp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26833 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
95ab268594
commit
df57fa0c7d
@ -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…
x
Reference in New Issue
Block a user