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 | c1cfdf8647a499b6b3024f4bd14a236cddb23988 (patch) | |
tree | 07b87aed1f31e66a219553c3ed564299e3ae7c8f /lib/CodeGen/CodeGenFunction.cpp | |
parent | da4b7cf09ebfd4e4098b516081fa9dae2f5c99e0 (diff) |
Add a LangOptions::areExceptionsEnabled and start using it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 96716ad9cc..f1b72863ca 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/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(); } |