From: Chris Lattner Date: Sun, 15 Feb 2004 22:24:27 +0000 (+0000) Subject: Instead of producing calls to setjmp/longjmp, produce uses of the X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=860a16143cb6c29153e49838071436f426cf389b;p=oota-llvm.git Instead of producing calls to setjmp/longjmp, produce uses of the llvm.setjmp/llvm.longjmp intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11482 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/LowerInvoke.cpp b/lib/Transforms/Utils/LowerInvoke.cpp index 43618266cb7..d42d0533f1c 100644 --- a/lib/Transforms/Utils/LowerInvoke.cpp +++ b/lib/Transforms/Utils/LowerInvoke.cpp @@ -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);