[cfe-commits] r56672 - /cfe/trunk/lib/AST/CFG.cpp
Ted Kremenek
kremenek at apple.com
Fri Sep 26 11:17:07 PDT 2008
Author: kremenek
Date: Fri Sep 26 13:17:07 2008
New Revision: 56672
URL: http://llvm.org/viewvc/llvm-project?rev=56672&view=rev
Log:
Do not create CFGs for functions/methods using blocks (need to add control-flow).
Modified:
cfe/trunk/lib/AST/CFG.cpp
Modified: cfe/trunk/lib/AST/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/CFG.cpp?rev=56672&r1=56671&r2=56672&view=diff
==============================================================================
--- cfe/trunk/lib/AST/CFG.cpp (original)
+++ cfe/trunk/lib/AST/CFG.cpp Fri Sep 26 13:17:07 2008
@@ -165,6 +165,10 @@
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 @@
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);
More information about the cfe-commits
mailing list