diff options
author | Logan Chien <tzuhsiang.chien@gmail.com> | 2014-07-01 11:47:10 +0000 |
---|---|---|
committer | Logan Chien <tzuhsiang.chien@gmail.com> | 2014-07-01 11:47:10 +0000 |
commit | e9c8ccbf8fa39dcf953fcfcca50b31edc1c059df (patch) | |
tree | f2bd63d097d0a5d5ecce1ed75e8699d56cb22566 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | ad80595b600a80da5d9156d10d805da1f18c1156 (diff) | |
download | llvm-e9c8ccbf8fa39dcf953fcfcca50b31edc1c059df.zip llvm-e9c8ccbf8fa39dcf953fcfcca50b31edc1c059df.tar.gz llvm-e9c8ccbf8fa39dcf953fcfcca50b31edc1c059df.tar.bz2 |
Remove CleanupHackLevel from CGException.
This patch removes the dead code, and refines the
getEHResumeBlock() slightly.
The CleanupHackLevel was a hack to the old exception
handling intrinsics, which have several issues with function
inliner.
Since LLVM 3.0, the new landingpad and resume instructions
are added to LLVM IR. With the new exception handling
mechanism, most of the issues are fixed now. We should
always use these instructions to implement the exception
handling code nowadays, and we don't need the hack any more.
Besides, the `CleanupHackLevel` is a compile-time constant,
thus other cases have been considered as dead code for a while.
llvm-svn: 212097
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index baad667..3446216 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1884,8 +1884,6 @@ public: void EmitObjCAtSynchronizedStmt(const ObjCAtSynchronizedStmt &S); void EmitObjCAutoreleasePoolStmt(const ObjCAutoreleasePoolStmt &S); - llvm::Constant *getUnwindResumeFn(); - llvm::Constant *getUnwindResumeOrRethrowFn(); void EnterCXXTryStmt(const CXXTryStmt &S, bool IsFnTryBlock = false); void ExitCXXTryStmt(const CXXTryStmt &S, bool IsFnTryBlock = false); |