diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-18 23:43:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-18 23:43:34 +0000 |
commit | 269c80c6ba61c847304e4ec881ea68810dcdcc18 (patch) | |
tree | b6dbf5178db86d369f8229beac0a6caf5ab28b0e /tools/opt | |
parent | 12e7b11a63251c931628e803fa04be72fc6e69e7 (diff) | |
download | external_llvm-269c80c6ba61c847304e4ec881ea68810dcdcc18.zip external_llvm-269c80c6ba61c847304e4ec881ea68810dcdcc18.tar.gz external_llvm-269c80c6ba61c847304e4ec881ea68810dcdcc18.tar.bz2 |
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')
-rw-r--r-- | tools/opt/AnalysisWrappers.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tools/opt/AnalysisWrappers.cpp b/tools/opt/AnalysisWrappers.cpp index 7cd0ba0..a0520d4 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 |