summaryrefslogtreecommitdiffstats
path: root/clang/Driver/ASTConsumers.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-02 18:11:29 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-02 18:11:29 +0000
commitbdbe6130f4d8121d729236fc568eb468b36dc19c (patch)
tree6c854e31e920ab5658d4676ef8c6ebea911a5c47 /clang/Driver/ASTConsumers.cpp
parent323b5755a65ae4f2e88f509b3deac01d94836c96 (diff)
downloadbcm5719-llvm-bdbe6130f4d8121d729236fc568eb468b36dc19c.tar.gz
bcm5719-llvm-bdbe6130f4d8121d729236fc568eb468b36dc19c.zip
Move -dump-live-variables logic to AnalysisConsumer.
llvm-svn: 53039
Diffstat (limited to 'clang/Driver/ASTConsumers.cpp')
-rw-r--r--clang/Driver/ASTConsumers.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/clang/Driver/ASTConsumers.cpp b/clang/Driver/ASTConsumers.cpp
index fb8dc80a3d5..2d6eb69ac29 100644
--- a/clang/Driver/ASTConsumers.cpp
+++ b/clang/Driver/ASTConsumers.cpp
@@ -20,11 +20,6 @@
#include "clang/AST/AST.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/CFG.h"
-#include "clang/AST/ParentMap.h"
-#include "clang/Analysis/Analyses/LiveVariables.h"
-#include "clang/Analysis/LocalCheckers.h"
-#include "clang/Analysis/PathSensitive/GRTransferFuncs.h"
-#include "clang/Analysis/PathSensitive/GRExprEngine.h"
#include "llvm/Support/Streams.h"
#include "llvm/Support/Timer.h"
#include "llvm/ADT/OwningPtr.h"
@@ -610,31 +605,6 @@ ASTConsumer *clang::CreateCFGDumper(bool ViewGraphs, const std::string& FName) {
}
//===----------------------------------------------------------------------===//
-// AnalyzeLiveVariables - perform live variable analysis and dump results
-
-namespace {
- class LivenessVisitor : public CFGVisitor {
- SourceManager *SM;
- public:
- LivenessVisitor(const std::string& fname) : CFGVisitor(fname) {}
-
- virtual void Initialize(ASTContext &Context) {
- SM = &Context.getSourceManager();
- }
-
- virtual void VisitCFG(CFG& C, Decl& CD) {
- LiveVariables L(C);
- L.runOnCFG(C);
- L.dumpBlockLiveness(*SM);
- }
- };
-} // end anonymous namespace
-
-ASTConsumer *clang::CreateLiveVarAnalyzer(const std::string& fname) {
- return new LivenessVisitor(fname);
-}
-
-//===----------------------------------------------------------------------===//
// AST Serializer
namespace {
OpenPOWER on IntegriCloud