зеркало из https://github.com/microsoft/clang-1.git
Get rid of the areExceptionsEnabled() getter from LangOptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126598 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
fda0f1f5a2
Коммит
7a17851eee
|
@ -239,10 +239,6 @@ public:
|
|||
void setSignedOverflowBehavior(SignedOverflowBehaviorTy V) {
|
||||
SignedOverflowBehavior = (unsigned)V;
|
||||
}
|
||||
|
||||
bool areExceptionsEnabled() const {
|
||||
return Exceptions;
|
||||
}
|
||||
};
|
||||
|
||||
/// Floating point control options
|
||||
|
|
|
@ -1099,7 +1099,7 @@ CFGBlock *CFGBuilder::VisitCallExpr(CallExpr *C, AddStmtChoice asc) {
|
|||
bool AddEHEdge = false;
|
||||
|
||||
// Languages without exceptions are assumed to not throw.
|
||||
if (Context->getLangOptions().areExceptionsEnabled()) {
|
||||
if (Context->getLangOptions().Exceptions) {
|
||||
if (BuildOpts.AddEHEdges)
|
||||
AddEHEdge = true;
|
||||
}
|
||||
|
|
|
@ -407,7 +407,7 @@ static void EmitBaseInitializer(CodeGenFunction &CGF,
|
|||
|
||||
CGF.EmitAggExpr(BaseInit->getInit(), AggSlot);
|
||||
|
||||
if (CGF.CGM.getLangOptions().areExceptionsEnabled() &&
|
||||
if (CGF.CGM.getLangOptions().Exceptions &&
|
||||
!BaseClassDecl->hasTrivialDestructor())
|
||||
CGF.EHStack.pushCleanup<CallBaseDtor>(EHCleanup, BaseClassDecl,
|
||||
isBaseVirtual);
|
||||
|
@ -606,7 +606,7 @@ static void EmitMemberInitializer(CodeGenFunction &CGF,
|
|||
|
||||
EmitAggMemberInitializer(CGF, LHS, ArrayIndexVar, MemberInit, FieldType, 0);
|
||||
|
||||
if (!CGF.CGM.getLangOptions().areExceptionsEnabled())
|
||||
if (!CGF.CGM.getLangOptions().Exceptions)
|
||||
return;
|
||||
|
||||
// FIXME: If we have an array of classes w/ non-trivial destructors,
|
||||
|
|
|
@ -166,7 +166,7 @@ CreateGlobalInitOrDestructFunction(CodeGenModule &CGM,
|
|||
Fn->setSection(Section);
|
||||
}
|
||||
|
||||
if (!CGM.getLangOptions().areExceptionsEnabled())
|
||||
if (!CGM.getLangOptions().Exceptions)
|
||||
Fn->setDoesNotThrow();
|
||||
|
||||
return Fn;
|
||||
|
|
|
@ -439,7 +439,7 @@ void CodeGenFunction::EmitCXXThrowExpr(const CXXThrowExpr *E) {
|
|||
}
|
||||
|
||||
void CodeGenFunction::EmitStartEHSpec(const Decl *D) {
|
||||
if (!CGM.getLangOptions().areExceptionsEnabled())
|
||||
if (!CGM.getLangOptions().Exceptions)
|
||||
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 (!CGM.getLangOptions().areExceptionsEnabled())
|
||||
if (!CGM.getLangOptions().Exceptions)
|
||||
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 (!CGM.getLangOptions().areExceptionsEnabled())
|
||||
if (!CGM.getLangOptions().Exceptions)
|
||||
return 0;
|
||||
|
||||
// Check the innermost scope for a cached landing pad. If this is
|
||||
|
|
Загрузка…
Ссылка в новой задаче