Remove this printer
authorChris Lattner <sabre@nondot.org>
Sun, 18 Jul 2004 23:43:34 +0000 (23:43 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 18 Jul 2004 23:43:34 +0000 (23:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14980 91177308-0d34-0410-b5e6-96231b3b80d8

tools/analyze/AnalysisWrappers.cpp
tools/opt/AnalysisWrappers.cpp

index 7cd0ba0723ea030ff5f62d70e2f5a9c327a589c3..a0520d4a4ac991d83f7eab1b3d7229e429e83c0f 100644 (file)
 
 #include "llvm/Module.h"
 #include "llvm/Pass.h"
-#include "llvm/Analysis/InstForest.h"
 #include "llvm/Support/CallSite.h"
 #include <iostream>
-
 using namespace llvm;
 
-namespace {
-  struct InstForestHelper : public FunctionPass {
-    Function *F;
-    virtual bool runOnFunction(Function &Func) { F = &Func; return false; }
-
-    void print(std::ostream &OS) const {
-      std::cout << InstForest<char>(F);
-    }
-    
-    virtual void getAnalysisUsage(AnalysisUsage &AU) const {
-      AU.setPreservesAll();
-    }
-  };
-
-  RegisterAnalysis<InstForestHelper> P1("instforest", "InstForest Printer");
-}
-
 namespace {
   /// ExternalFunctionsPassedConstants - This pass prints out call sites to
   /// external functions that are called with constant arguments.  This can be
index 7cd0ba0723ea030ff5f62d70e2f5a9c327a589c3..a0520d4a4ac991d83f7eab1b3d7229e429e83c0f 100644 (file)
 
 #include "llvm/Module.h"
 #include "llvm/Pass.h"
-#include "llvm/Analysis/InstForest.h"
 #include "llvm/Support/CallSite.h"
 #include <iostream>
-
 using namespace llvm;
 
-namespace {
-  struct InstForestHelper : public FunctionPass {
-    Function *F;
-    virtual bool runOnFunction(Function &Func) { F = &Func; return false; }
-
-    void print(std::ostream &OS) const {
-      std::cout << InstForest<char>(F);
-    }
-    
-    virtual void getAnalysisUsage(AnalysisUsage &AU) const {
-      AU.setPreservesAll();
-    }
-  };
-
-  RegisterAnalysis<InstForestHelper> P1("instforest", "InstForest Printer");
-}
-
 namespace {
   /// ExternalFunctionsPassedConstants - This pass prints out call sites to
   /// external functions that are called with constant arguments.  This can be