diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-07-02 18:39:20 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-07-02 18:39:20 +0000 |
| commit | d8ca1f6dd94346b746cd89aa0f164dc201324674 (patch) | |
| tree | 4ecd7a7e2b7c38105a885f6962f2034d45d2b337 /clang/lib/Analysis | |
| parent | c3b30340d954351c9538f61b617e2e77f31a2798 (diff) | |
| download | bcm5719-llvm-d8ca1f6dd94346b746cd89aa0f164dc201324674.tar.gz bcm5719-llvm-d8ca1f6dd94346b746cd89aa0f164dc201324674.zip | |
Added version of CheckDeadStores that accepts a client-provided LiveVariables object.
Modified the DeadStores logic in AnalysisConsumer.cpp to use the LiveVariables object created by the AnalysisManager.
llvm-svn: 53043
Diffstat (limited to 'clang/lib/Analysis')
| -rw-r--r-- | clang/lib/Analysis/DeadStores.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Analysis/DeadStores.cpp b/clang/lib/Analysis/DeadStores.cpp index 208e66f3e96..265679ff7e6 100644 --- a/clang/lib/Analysis/DeadStores.cpp +++ b/clang/lib/Analysis/DeadStores.cpp @@ -151,6 +151,12 @@ void clang::CheckDeadStores(CFG& cfg, ASTContext &Ctx, ParentMap& Parents, Diagnostic &Diags) { LiveVariables L(cfg); L.runOnCFG(cfg); + CheckDeadStores(cfg, Ctx, L, Parents, Diags); +} + +void clang::CheckDeadStores(CFG& cfg, ASTContext &Ctx, LiveVariables& L, + ParentMap& Parents, Diagnostic &Diags) { + DeadStoreObs A(Ctx, Diags, Diags.getClient(), Parents); L.runOnAllBlocks(cfg, &A); } |

