[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp

Evan Cheng evan.cheng at apple.com
Fri Mar 17 12:31:53 PST 2006



Changes in directory llvm/lib/Target/X86:

X86ISelLowering.cpp updated: 1.110 -> 1.111
---
Log message:

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


---
Diffs of the changes:  (+4 -0)

 X86ISelLowering.cpp |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.110 llvm/lib/Target/X86/X86ISelLowering.cpp:1.111
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.110	Fri Mar 17 11:27:47 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp	Fri Mar 17 14:31:41 2006
@@ -50,6 +50,10 @@
   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);






More information about the llvm-commits mailing list