diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-09-25 17:47:04 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-09-25 17:47:04 +0000 |
commit | 4cd8b3cd4fb65fa8c55423f5149320c9629ec1be (patch) | |
tree | d3d42017fa210a751538b5257797b5d041d64c46 | |
parent | 2c9334d3f06f3189e510e65799ede74527606a88 (diff) |
Removed "EverKilled" class in DeadStores checker; it is no longer used.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42301 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Analysis/DeadStores.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Analysis/DeadStores.cpp b/Analysis/DeadStores.cpp index b976d92e96..642b90b8d8 100644 --- a/Analysis/DeadStores.cpp +++ b/Analysis/DeadStores.cpp @@ -17,26 +17,14 @@ #include "clang/Analysis/Visitors/CFGRecStmtVisitor.h" #include "clang/Basic/Diagnostic.h" #include "clang/AST/ASTContext.h" -#include "llvm/ADT/SmallPtrSet.h" using namespace clang; namespace { - -class EverKilled : public LiveVariables::ObserverTy { - llvm::SmallPtrSet<const VarDecl*, 10> Killed; -public: - virtual void ObserveKill(DeclRefExpr* DR) { - Killed.insert(cast<VarDecl>(DR->getDecl())); - } - - bool hasKill(const VarDecl* V) { return Killed.count(V) != 0; } -}; class DeadStoreObs : public LiveVariables::ObserverTy { ASTContext &Ctx; Diagnostic &Diags; - EverKilled EK; public: DeadStoreObs(ASTContext &ctx,Diagnostic &diags) : Ctx(ctx), Diags(diags){} virtual ~DeadStoreObs() {} |