зеркало из https://github.com/microsoft/clang-1.git
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:
Родитель
22e6dd79ec
Коммит
00c0a30acd
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче