diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-08 19:44:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-08 19:44:26 +0000 |
commit | ee5457cbe88b7f691f774de8515d9a94226d1b00 (patch) | |
tree | ac7e19c81aba3447b8446f1b4d29c5f5e6db01b8 /lib/Target/CBackend/CBackend.cpp | |
parent | da73beac201091653d9e2b900d2207c31ed97a0e (diff) |
Eliminate support for the llvm.unwind intrinisic, using the Unwind instruction instead
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8411 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 073ce19189..0a9c8d1d01 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -1153,19 +1153,6 @@ void CWriter::visitCallInst(CallInst &I) { Out << ")"; return; - case LLVMIntrinsic::unwind: - // The unwind intrinsic calls a control flow transfer out of the current - // function, unwinding the stack until a caller who used the invoke - // instruction is found. In this context, we code generated the invoke - // instruction to add an entry to the top of the jmpbuf_list. Thus, - // here we just have to longjmp to the specified handler. - Out << "if (__llvm_jmpbuf_list == 0) { /* llvm.unwind */\n" - << " printf(\"throw found with no handler!\\n\"); abort();\n" - << " }\n" - << " longjmp(__llvm_jmpbuf_list->buf, 1)"; - return; - - case LLVMIntrinsic::setjmp: case LLVMIntrinsic::sigsetjmp: // This instrinsic should never exist in the program, but until we get |