diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-08-25 03:33:41 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-08-25 03:33:41 +0000 |
| commit | 94ec649b335f1f9022dac1f6e4af2344d41788c2 (patch) | |
| tree | c11782bfd3d7403870dcf30e656ca7ca4ddc42f1 /clang/lib/Analysis/GRExprEngine.cpp | |
| parent | 4562f1f0668f0fbbaecc225a5c22654809f8cc56 (diff) | |
| download | bcm5719-llvm-94ec649b335f1f9022dac1f6e4af2344d41788c2.tar.gz bcm5719-llvm-94ec649b335f1f9022dac1f6e4af2344d41788c2.zip | |
Remove Decl and CFG from ExplodedGraph. This leads to a series small changes.
llvm-svn: 79973
Diffstat (limited to 'clang/lib/Analysis/GRExprEngine.cpp')
| -rw-r--r-- | clang/lib/Analysis/GRExprEngine.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp index ace75cb943f..17baca7b652 100644 --- a/clang/lib/Analysis/GRExprEngine.cpp +++ b/clang/lib/Analysis/GRExprEngine.cpp @@ -153,7 +153,7 @@ GRExprEngine::GRExprEngine(CFG &cfg, const Decl &CD, ASTContext &Ctx, StoreManagerCreator SMC, ConstraintManagerCreator CMC) : AMgr(mgr), - CoreEngine(cfg, CD, Ctx, *this), + CoreEngine(Ctx, *this), G(CoreEngine.getGraph()), Liveness(L), Builder(NULL), @@ -316,7 +316,7 @@ void GRExprEngine::Visit(Stmt* S, ExplodedNode* Pred, ExplodedNodeSet& Dst) { // this check when we KNOW that there is no block-level subexpression. // The motivation is that this check requires a hashtable lookup. - if (S != CurrentStmt && getCFG().isBlkExpr(S)) { + if (S != CurrentStmt && Pred->getLocationContext()->getCFG()->isBlkExpr(S)) { Dst.Add(Pred); return; } @@ -494,7 +494,7 @@ void GRExprEngine::VisitLValue(Expr* Ex, ExplodedNode* Pred, Ex = Ex->IgnoreParens(); - if (Ex != CurrentStmt && getCFG().isBlkExpr(Ex)) { + if (Ex != CurrentStmt && Pred->getLocationContext()->getCFG()->isBlkExpr(Ex)) { Dst.Add(Pred); return; } @@ -807,7 +807,7 @@ void GRExprEngine::ProcessIndirectGoto(GRIndirectGotoNodeBuilder& builder) { void GRExprEngine::VisitGuardedExpr(Expr* Ex, Expr* L, Expr* R, ExplodedNode* Pred, ExplodedNodeSet& Dst) { - assert (Ex == CurrentStmt && getCFG().isBlkExpr(Ex)); + assert (Ex == CurrentStmt && Pred->getLocationContext()->getCFG()->isBlkExpr(Ex)); const GRState* state = GetState(Pred); SVal X = state->getBlkExprSVal(Ex); @@ -917,7 +917,7 @@ void GRExprEngine::VisitLogicalExpr(BinaryOperator* B, ExplodedNode* Pred, assert(B->getOpcode() == BinaryOperator::LAnd || B->getOpcode() == BinaryOperator::LOr); - assert(B == CurrentStmt && getCFG().isBlkExpr(B)); + assert(B == CurrentStmt && Pred->getLocationContext()->getCFG()->isBlkExpr(B)); const GRState* state = GetState(Pred); SVal X = state->getBlkExprSVal(B); |

