Do not create CFGs for functions/methods using blocks (need to add control-flow).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2008-09-26 18:17:07 +00:00
Родитель 22e6dd79ec
Коммит 00c0a30acd
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -165,6 +165,10 @@ public:
return NYS();
}
// Blocks.
CFGBlock* VisitBlockExpr(BlockExpr* E) { return NYS(); }
CFGBlock* VisitBlockDeclRefExpr(BlockDeclRefExpr* E) { return NYS(); }
private:
CFGBlock* createBlock(bool add_successor = true);
CFGBlock* addStmt(Stmt* Terminator);
@ -455,6 +459,11 @@ CFGBlock* CFGBuilder::WalkAST(Stmt* Terminator, bool AlwaysAddStmt = false) {
break;
}
// Blocks: No support for blocks ... yet
case Stmt::BlockExprClass:
case Stmt::BlockDeclRefExprClass:
return NYS();
case Stmt::ParenExprClass:
return WalkAST(cast<ParenExpr>(Terminator)->getSubExpr(), AlwaysAddStmt);