From: Ted Kremenek Date: Tue, 25 Sep 2007 17:47:04 +0000 (+0000) Subject: Removed "EverKilled" class in DeadStores checker; it is no longer used. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4cd8b3cd4fb65fa8c55423f5149320c9629ec1be;p=clang 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 --- 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 Killed; -public: - virtual void ObserveKill(DeclRefExpr* DR) { - Killed.insert(cast(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() {}