Add a LangOptions::areExceptionsEnabled and start using it.

llvm-svn: 126062
This commit is contained in:
Anders Carlsson
2011-02-20 00:20:27 +00:00
parent ce8dd3a5d4
commit 08ce5ed1b1
7 changed files with 13 additions and 10 deletions

View File

@@ -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();
}