From 4cd8b3cd4fb65fa8c55423f5149320c9629ec1be Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 25 Sep 2007 17:47:04 +0000 Subject: [PATCH] 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 --- Analysis/DeadStores.cpp | 12 ------------ 1 file changed, 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 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() {} -- 2.50.1