[llvm-commits] CVS: llvm/lib/CWriter/Writer.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 18 11:10:12 PDT 2003


Changes in directory llvm/lib/CWriter:

Writer.cpp updated: 1.116 -> 1.117

---
Log message:

Add support for the sig(set|long)jmp intrinsics



---
Diffs of the changes:

Index: llvm/lib/CWriter/Writer.cpp
diff -u llvm/lib/CWriter/Writer.cpp:1.116 llvm/lib/CWriter/Writer.cpp:1.117
--- llvm/lib/CWriter/Writer.cpp:1.116	Mon Aug 18 09:30:30 2003
+++ llvm/lib/CWriter/Writer.cpp	Mon Aug 18 11:06:07 2003
@@ -1139,6 +1139,7 @@
         return;
         
       case LLVMIntrinsic::setjmp:
+      case LLVMIntrinsic::sigsetjmp:
         // This instrinsic should never exist in the program, but until we get
         // setjmp/longjmp transformations going on, we should codegen it to
         // something reasonable.  This will allow code that never calls longjmp
@@ -1146,7 +1147,9 @@
         Out << "0";
         return;
       case LLVMIntrinsic::longjmp:
-        // Treat longjmp the same as setjmp
+      case LLVMIntrinsic::siglongjmp:
+        // Longjmp is not implemented, and never will be.  It would cause an
+        // exception throw.
         Out << "abort()";
         return;
       }





More information about the llvm-commits mailing list