forked from OSchip/llvm-project
Include BlockDeclRefExprs in constructed CFGs.
llvm-svn: 90583
This commit is contained in:
parent
c32f2c2e0f
commit
75d6fa27bd
|
@ -87,7 +87,6 @@ private:
|
||||||
CFGBlock *VisitAddrLabelExpr(AddrLabelExpr *A, bool alwaysAdd);
|
CFGBlock *VisitAddrLabelExpr(AddrLabelExpr *A, bool alwaysAdd);
|
||||||
CFGBlock *VisitBinaryOperator(BinaryOperator *B, bool alwaysAdd);
|
CFGBlock *VisitBinaryOperator(BinaryOperator *B, bool alwaysAdd);
|
||||||
CFGBlock *VisitBlockExpr(BlockExpr* E, bool alwaysAdd);
|
CFGBlock *VisitBlockExpr(BlockExpr* E, bool alwaysAdd);
|
||||||
CFGBlock *VisitBlockDeclRefExpr(BlockDeclRefExpr* E, bool alwaysAdd);
|
|
||||||
CFGBlock *VisitBreakStmt(BreakStmt *B);
|
CFGBlock *VisitBreakStmt(BreakStmt *B);
|
||||||
CFGBlock *VisitCallExpr(CallExpr *C, bool alwaysAdd);
|
CFGBlock *VisitCallExpr(CallExpr *C, bool alwaysAdd);
|
||||||
CFGBlock *VisitCaseStmt(CaseStmt *C);
|
CFGBlock *VisitCaseStmt(CaseStmt *C);
|
||||||
|
@ -292,9 +291,6 @@ tryAgain:
|
||||||
case Stmt::BlockExprClass:
|
case Stmt::BlockExprClass:
|
||||||
return VisitBlockExpr(cast<BlockExpr>(S), alwaysAdd);
|
return VisitBlockExpr(cast<BlockExpr>(S), alwaysAdd);
|
||||||
|
|
||||||
case Stmt::BlockDeclRefExprClass:
|
|
||||||
return VisitBlockDeclRefExpr(cast<BlockDeclRefExpr>(S), alwaysAdd);
|
|
||||||
|
|
||||||
case Stmt::BreakStmtClass:
|
case Stmt::BreakStmtClass:
|
||||||
return VisitBreakStmt(cast<BreakStmt>(S));
|
return VisitBreakStmt(cast<BreakStmt>(S));
|
||||||
|
|
||||||
|
@ -468,12 +464,6 @@ CFGBlock *CFGBuilder::VisitBlockExpr(BlockExpr *E, bool alwaysAdd) {
|
||||||
return Block;
|
return Block;
|
||||||
}
|
}
|
||||||
|
|
||||||
CFGBlock *CFGBuilder::VisitBlockDeclRefExpr(BlockDeclRefExpr* E,
|
|
||||||
bool alwaysAdd) {
|
|
||||||
// FIXME
|
|
||||||
return NYS();
|
|
||||||
}
|
|
||||||
|
|
||||||
CFGBlock *CFGBuilder::VisitBreakStmt(BreakStmt *B) {
|
CFGBlock *CFGBuilder::VisitBreakStmt(BreakStmt *B) {
|
||||||
// "break" is a control-flow statement. Thus we stop processing the current
|
// "break" is a control-flow statement. Thus we stop processing the current
|
||||||
// block.
|
// block.
|
||||||
|
|
Loading…
Reference in New Issue