aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/LowerInvoke.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-15 22:24:27 +0000
committerChris Lattner <sabre@nondot.org>2004-02-15 22:24:27 +0000
commit860a16143cb6c29153e49838071436f426cf389b (patch)
treefa7e8dc35863d3d3dbc37fcc58a408171fe84a0b /lib/Transforms/Utils/LowerInvoke.cpp
parent588e72db75649e8f9f79d73c24156c9611aeacf3 (diff)
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
Diffstat (limited to 'lib/Transforms/Utils/LowerInvoke.cpp')
-rw-r--r--lib/Transforms/Utils/LowerInvoke.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/LowerInvoke.cpp b/lib/Transforms/Utils/LowerInvoke.cpp
index 43618266cb..d42d0533f1 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);