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
This commit is contained in:
Chris Lattner 2004-02-15 22:24:27 +00:00
parent 588e72db75
commit 860a16143c

View 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);