llvm-svn: 114062
This commit is contained in:
Zhongxing Xu 2010-09-16 03:28:18 +00:00
parent 2a8b9a3caa
commit d38fb8466c
1 changed files with 4 additions and 5 deletions

View File

@ -91,12 +91,15 @@ class CFGBuilder {
typedef llvm::SmallPtrSet<LabelStmt*,5> LabelSetTy;
LabelSetTy AddressTakenLabels;
bool badCFG;
CFG::BuildOptions BuildOpts;
public:
explicit CFGBuilder() : cfg(new CFG()), // crew a new CFG
Block(NULL), Succ(NULL),
ContinueTargetBlock(NULL), BreakTargetBlock(NULL),
SwitchTerminatedBlock(NULL), DefaultCaseBlock(NULL),
TryTerminatedBlock(NULL) {}
TryTerminatedBlock(NULL), badCFG(false) {}
// buildCFG - Used by external clients to construct the CFG.
CFG* buildCFG(const Decl *D, Stmt *Statement, ASTContext *C,
@ -197,9 +200,6 @@ private:
return TryResult();
}
bool badCFG;
CFG::BuildOptions BuildOpts;
};
// FIXME: Add support for dependent-sized array types in C++?
@ -229,7 +229,6 @@ CFG* CFGBuilder::buildCFG(const Decl *D, Stmt* Statement, ASTContext* C,
if (!Statement)
return NULL;
badCFG = false;
BuildOpts = BO;
if (!C->getLangOptions().CPlusPlus)
BuildOpts.AddImplicitDtors = false;