diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-08-25 06:51:30 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-08-25 06:51:30 +0000 |
commit | 5032ffe4259e7d436f2eb19e5a29fdae559e7c12 (patch) | |
tree | 62df2b628e75f5eb82778f1becd7647809709a95 /lib/Frontend/AnalysisConsumer.cpp | |
parent | 80f01ba80b2827fb06b6c5809fe325570535af74 (diff) |
Remove CodeDecl and CFG from GRExprEngine and GRStateManager.
Now AnalysisManager is the only place we can get CodeDecl.
This leads to an API change: GRState::bindExpr() now takes the CFG argument.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/AnalysisConsumer.cpp')
-rw-r--r-- | lib/Frontend/AnalysisConsumer.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Frontend/AnalysisConsumer.cpp b/lib/Frontend/AnalysisConsumer.cpp index 0098681eba..55264d36b8 100644 --- a/lib/Frontend/AnalysisConsumer.cpp +++ b/lib/Frontend/AnalysisConsumer.cpp @@ -277,7 +277,7 @@ static void ActionWarnDeadStores(AnalysisManager& mgr) { static void ActionWarnUninitVals(AnalysisManager& mgr) { if (CFG* c = mgr.getCFG()) - CheckUninitializedValues(*c, mgr.getContext(), mgr.getDiagnostic()); + CheckUninitializedValues(*c, mgr.getASTContext(), mgr.getDiagnostic()); } @@ -294,10 +294,7 @@ static void ActionGRExprEngine(AnalysisManager& mgr, GRTransferFuncs* tf, LiveVariables* L = mgr.getLiveVariables(); if (!L) return; - GRExprEngine Eng(*mgr.getCFG(), *mgr.getCodeDecl(), mgr.getContext(), *L, mgr, - mgr.shouldPurgeDead(), mgr.shouldEagerlyAssume(), - mgr.getStoreManagerCreator(), - mgr.getConstraintManagerCreator()); + GRExprEngine Eng(mgr); Eng.setTransferFunctions(tf); @@ -331,7 +328,7 @@ static void ActionGRExprEngine(AnalysisManager& mgr, GRTransferFuncs* tf, static void ActionCheckerCFRefAux(AnalysisManager& mgr, bool GCEnabled, bool StandardWarnings) { - GRTransferFuncs* TF = MakeCFRefCountTF(mgr.getContext(), + GRTransferFuncs* TF = MakeCFRefCountTF(mgr.getASTContext(), GCEnabled, mgr.getLangOptions()); |