diff options
author | Mike Stump <mrs@apple.com> | 2009-12-02 18:20:18 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-12-02 18:20:18 +0000 |
commit | c88b6735ea8d2c0c5126239c0761e0e139117349 (patch) | |
tree | 5de0d3b550aa1ff8c1875c532eee95022cd79964 /lib/CodeGen/CGException.cpp | |
parent | 057e567f1b375190779e5341f42861896cdee442 (diff) |
Avoid warning for getTerminateFn defined but not used.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGException.cpp')
-rw-r--r-- | lib/CodeGen/CGException.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/CodeGen/CGException.cpp b/lib/CodeGen/CGException.cpp index c93f2b7b12..9aa6382ac5 100644 --- a/lib/CodeGen/CGException.cpp +++ b/lib/CodeGen/CGException.cpp @@ -253,15 +253,10 @@ void CodeGenFunction::EmitCXXThrowExpr(const CXXThrowExpr *E) { } void CodeGenFunction::EmitCXXTryStmt(const CXXTryStmt &S) { -#if 1 - EmitStmt(S.getTryBlock()); - if (0) { - getBeginCatchFn(*this); - getEndCatchFn(*this); - getUnwindResumeOrRethrowFn(*this); - CopyObject(*this, QualType(), 0, 0); + if (1) { + EmitStmt(S.getTryBlock()); + return; } -#else // FIXME: The below is still just a sketch of the code we need. // Pointer to the personality function llvm::Constant *Personality = @@ -473,5 +468,4 @@ void CodeGenFunction::EmitCXXTryStmt(const CXXTryStmt &S) { Builder.CreateUnreachable(); EmitBlock(FinallyEnd); -#endif } |