diff options
author | Anders Carlsson <andersca@mac.com> | 2011-02-20 00:20:27 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-02-20 00:20:27 +0000 |
commit | 08ce5ed1b1f80a8de500e300d3bbea6967c6ef4a (patch) | |
tree | 805c065430ac81be86bcd93cf0c44ea77a73f045 /clang/lib/CodeGen/CGException.cpp | |
parent | ce8dd3a5d474b40ab4399aeab94d616f7f2b1055 (diff) | |
download | bcm5719-llvm-08ce5ed1b1f80a8de500e300d3bbea6967c6ef4a.tar.gz bcm5719-llvm-08ce5ed1b1f80a8de500e300d3bbea6967c6ef4a.zip |
Add a LangOptions::areExceptionsEnabled and start using it.
llvm-svn: 126062
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 0e717e26ab3..6181965748c 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -439,7 +439,7 @@ void CodeGenFunction::EmitCXXThrowExpr(const CXXThrowExpr *E) { } void CodeGenFunction::EmitStartEHSpec(const Decl *D) { - if (!Exceptions) + if (!CGM.getLangOptions().areExceptionsEnabled()) return; const FunctionDecl* FD = dyn_cast_or_null<FunctionDecl>(D); @@ -467,7 +467,7 @@ void CodeGenFunction::EmitStartEHSpec(const Decl *D) { } void CodeGenFunction::EmitEndEHSpec(const Decl *D) { - if (!Exceptions) + if (!CGM.getLangOptions().areExceptionsEnabled()) return; const FunctionDecl* FD = dyn_cast_or_null<FunctionDecl>(D); @@ -541,7 +541,7 @@ llvm::BasicBlock *CodeGenFunction::getInvokeDestImpl() { assert(EHStack.requiresLandingPad()); assert(!EHStack.empty()); - if (!Exceptions) + if (!CGM.getLangOptions().areExceptionsEnabled()) return 0; // Check the innermost scope for a cached landing pad. If this is |