summaryrefslogtreecommitdiffstats
path: root/clang/Driver/ASTConsumers.cpp
diff options
context:
space:
mode:
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