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/CodeGenFunction.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/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 96716ad9ccf..f1b72863cac 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -39,8 +39,7 @@ CodeGenFunction::CodeGenFunction(CodeGenModule &cgm) CXXThisDecl(0), CXXThisValue(0), CXXVTTDecl(0), CXXVTTValue(0), OutermostConditional(0), TerminateLandingPad(0), TerminateHandler(0), TrapBB(0) { - - Exceptions = getContext().getLangOptions().Exceptions; + CatchUndefined = getContext().getLangOptions().CatchUndefined; CGM.getCXXABI().getMangleContext().startNewFunction(); } |