[cfe-commits] r90330 - /cfe/trunk/lib/CodeGen/CGException.cpp
Mike Stump
mrs at apple.com
Wed Dec 2 10:20:18 PST 2009
Author: mrs
Date: Wed Dec 2 12:20:18 2009
New Revision: 90330
URL: http://llvm.org/viewvc/llvm-project?rev=90330&view=rev
Log:
Avoid warning for getTerminateFn defined but not used.
Modified:
cfe/trunk/lib/CodeGen/CGException.cpp
Modified: cfe/trunk/lib/CodeGen/CGException.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGException.cpp?rev=90330&r1=90329&r2=90330&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGException.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGException.cpp Wed Dec 2 12:20:18 2009
@@ -253,15 +253,10 @@
}
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 @@
Builder.CreateUnreachable();
EmitBlock(FinallyEnd);
-#endif
}
More information about the cfe-commits
mailing list