summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CWriter/Writer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-08 19:44:26 +0000
committerChris Lattner <sabre@nondot.org>2003-09-08 19:44:26 +0000
commit04ecefe2325871f70c89ee7e2a6bda34e0c006b6 (patch)
tree63803e7edc31c6197861e1534488543d1992c67a /llvm/lib/CWriter/Writer.cpp
parent0b792b4ed345295214583991a27b692b3c6bd1bb (diff)
downloadbcm5719-llvm-04ecefe2325871f70c89ee7e2a6bda34e0c006b6.tar.gz
bcm5719-llvm-04ecefe2325871f70c89ee7e2a6bda34e0c006b6.zip
Eliminate support for the llvm.unwind intrinisic, using the Unwind instruction instead
llvm-svn: 8411
Diffstat (limited to 'llvm/lib/CWriter/Writer.cpp')
-rw-r--r--llvm/lib/CWriter/Writer.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/CWriter/Writer.cpp b/llvm/lib/CWriter/Writer.cpp
index 073ce19189f..0a9c8d1d017 100644
--- a/llvm/lib/CWriter/Writer.cpp
+++ b/llvm/lib/CWriter/Writer.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
OpenPOWER on IntegriCloud