forked from OSchip/llvm-project
Instead of producing calls to setjmp/longjmp, produce uses of the
llvm.setjmp/llvm.longjmp intrinsics. llvm-svn: 11482
This commit is contained in:
parent
25530a12a1
commit
d85e061575
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue