diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-24 12:24:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-24 12:24:08 +0000 |
commit | 101d40060c6041a84f5460bb16475f9f03fd140d (patch) | |
tree | 75748d233534d400ac9c8037b978f386ee9c0c45 /lib/VMCore/Function.cpp | |
parent | 6270f367847d2d3e35f60ead8b039c284d31278f (diff) |
rethrow is really the language independent primitive here. "throw" can be written
in terms of it and llvm.exc.setcurrent.
Rework the intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8110 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 4527372ae7..ce190c80a3 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -197,8 +197,7 @@ unsigned Function::getIntrinsicID() const { break; case 'e': if (getName() == "llvm.exc.getcurrent")return LLVMIntrinsic::exc_getcurrent; - if (getName() == "llvm.exc.rethrow") return LLVMIntrinsic::exc_rethrow; - if (getName() == "llvm.exc.throw") return LLVMIntrinsic::exc_throw; + if (getName() == "llvm.exc.setcurrent")return LLVMIntrinsic::exc_setcurrent; break; case 'l': if (getName() == "llvm.longjmp") return LLVMIntrinsic::longjmp; @@ -208,6 +207,9 @@ unsigned Function::getIntrinsicID() const { if (getName() == "llvm.sigsetjmp") return LLVMIntrinsic::sigsetjmp; if (getName() == "llvm.siglongjmp") return LLVMIntrinsic::siglongjmp; break; + case 'u': + if (getName() == "llvm.unwind") return LLVMIntrinsic::unwind; + break; case 'v': if (getName() == "llvm.va_copy") return LLVMIntrinsic::va_copy; if (getName() == "llvm.va_end") return LLVMIntrinsic::va_end; |