summaryrefslogtreecommitdiff
path: root/tools/opt/AnalysisWrappers.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-18 23:43:34 +0000
committerChris Lattner <sabre@nondot.org>2004-07-18 23:43:34 +0000
commit269c80c6ba61c847304e4ec881ea68810dcdcc18 (patch)
treeb6dbf5178db86d369f8229beac0a6caf5ab28b0e /tools/opt/AnalysisWrappers.cpp
parent12e7b11a63251c931628e803fa04be72fc6e69e7 (diff)
downloadllvm-269c80c6ba61c847304e4ec881ea68810dcdcc18.tar.gz
llvm-269c80c6ba61c847304e4ec881ea68810dcdcc18.tar.bz2
llvm-269c80c6ba61c847304e4ec881ea68810dcdcc18.tar.xz
Remove this printer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/AnalysisWrappers.cpp')
-rw-r--r--tools/opt/AnalysisWrappers.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/tools/opt/AnalysisWrappers.cpp b/tools/opt/AnalysisWrappers.cpp
index 7cd0ba0723..a0520d4a4a 100644
--- a/tools/opt/AnalysisWrappers.cpp
+++ b/tools/opt/AnalysisWrappers.cpp
@@ -19,30 +19,11 @@
#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
/// useful when looking for standard library functions we should constant fold