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/Analysis/BugReporter.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/Analysis/BugReporter.cpp')
-rw-r--r-- | lib/Analysis/BugReporter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index bda31fa4b7..feffd45d9c 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/lib/Analysis/BugReporter.cpp @@ -36,6 +36,14 @@ BugReporterContext::~BugReporterContext() { if ((*I)->isOwnedByReporterContext()) delete *I; } +const Decl& BugReporterContext::getCodeDecl() { + return *BR.getEngine().getAnalysisManager().getCodeDecl(); +} + +const CFG& BugReporterContext::getCFG() { + return *BR.getEngine().getAnalysisManager().getCFG(); +} + //===----------------------------------------------------------------------===// // Helper routines for walking the ExplodedGraph and fetching statements. //===----------------------------------------------------------------------===// |