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

Chris Lattner lattner at cs.uiuc.edu
Sun Jun 29 11:43:01 PDT 2003


Changes in directory llvm/lib/Target/X86:

InstSelectSimple.cpp updated: 1.110 -> 1.111

---
Log message:

Until there is a setjmp/longjmp transformation pass, codegen setjmp as a noop
and longjmp as an abort!


---
Diffs of the changes:

Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.110 llvm/lib/Target/X86/InstSelectSimple.cpp:1.111
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.110	Sat Jun 21 22:31:18 2003
+++ llvm/lib/Target/X86/InstSelectSimple.cpp	Sun Jun 29 11:42:32 2003
@@ -978,6 +978,10 @@
     addDirectMem(BuildMI(BB, X86::MOVrm32, 5), TmpReg2).addReg(TmpReg1);
     return;
 
+  case LLVMIntrinsic::longjmp:
+    BuildMI(X86::CALLpcrel32, 1).addExternalSymbol("abort", true); 
+  case LLVMIntrinsic::setjmp:
+    return;
   default: assert(0 && "Unknown intrinsic for X86!");
   }
 }





More information about the llvm-commits mailing list