Instead of producing calls to setjmp/longjmp, produce uses of the
authorChris Lattner <sabre@nondot.org>
Sun, 15 Feb 2004 22:24:27 +0000 (22:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Feb 2004 22:24:27 +0000 (22:24 +0000)
llvm.setjmp/llvm.longjmp intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11482 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LowerInvoke.cpp

index 43618266cb774fbfa132158fbfde6c096f9b98fb..d42d0533f1c4521bf42f4a8aaa796ba495ebc78e 100644 (file)
@@ -108,9 +108,9 @@ bool LowerInvoke::doInitialization(Module &M) {
                                       GlobalValue::LinkOnceLinkage,
                                       Constant::getNullValue(PtrJBList),
                                       "llvm.sjljeh.jblist", &M);
-    SetJmpFn = M.getOrInsertFunction("setjmp", Type::IntTy,
+    SetJmpFn = M.getOrInsertFunction("llvm.setjmp", Type::IntTy,
                                      PointerType::get(JmpBufTy), 0);
-    LongJmpFn = M.getOrInsertFunction("longjmp", Type::VoidTy,
+    LongJmpFn = M.getOrInsertFunction("llvm.longjmp", Type::VoidTy,
                                       PointerType::get(JmpBufTy),
                                       Type::IntTy, 0);