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 | 342950efc55cfdd5e6f8794488452bc093e1d5cd (patch) | |
tree | b1b158c2cc113f3c550ccda6654fa4e178e37065 /clang/lib/Analysis/BugReporter.cpp | |
parent | 79e3fa6e9da15c648473736465dcefd3e6ae60ed (diff) | |
download | bcm5719-llvm-342950efc55cfdd5e6f8794488452bc093e1d5cd.tar.gz bcm5719-llvm-342950efc55cfdd5e6f8794488452bc093e1d5cd.zip |
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.
llvm-svn: 79980
Diffstat (limited to 'clang/lib/Analysis/BugReporter.cpp')
-rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp index bda31fa4b77..feffd45d9cd 100644 --- a/clang/lib/Analysis/BugReporter.cpp +++ b/clang/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. //===----------------------------------------------------------------------===// |