diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-24 02:39:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-24 02:39:26 +0000 |
commit | 9661c13c37d017df6f91a399c0160b82e8a6c39f (patch) | |
tree | 3aef730058b56f33b9208294137e40095569e507 | |
parent | 87cbef0df0f7bb86a0e8181aa72c4d322bb0707b (diff) | |
download | external_llvm-9661c13c37d017df6f91a399c0160b82e8a6c39f.zip external_llvm-9661c13c37d017df6f91a399c0160b82e8a6c39f.tar.gz external_llvm-9661c13c37d017df6f91a399c0160b82e8a6c39f.tar.bz2 |
remove a few dead insertion methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79882 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/IVUsers.h | 4 | ||||
-rw-r--r-- | include/llvm/Analysis/LoopDependenceAnalysis.h | 2 | ||||
-rw-r--r-- | include/llvm/Analysis/PointerTracking.h | 1 | ||||
-rw-r--r-- | include/llvm/Analysis/ScalarEvolution.h | 8 | ||||
-rw-r--r-- | lib/Analysis/IVUsers.cpp | 5 | ||||
-rw-r--r-- | lib/Analysis/LoopDependenceAnalysis.cpp | 5 | ||||
-rw-r--r-- | lib/Analysis/PointerTracking.cpp | 10 | ||||
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 5 |
8 files changed, 2 insertions, 38 deletions
diff --git a/include/llvm/Analysis/IVUsers.h b/include/llvm/Analysis/IVUsers.h index 18e6fec..948c675 100644 --- a/include/llvm/Analysis/IVUsers.h +++ b/include/llvm/Analysis/IVUsers.h @@ -206,10 +206,6 @@ public: const SCEV *getReplacementExpr(const IVStrideUse &U) const; void print(raw_ostream &OS, const Module* = 0) const; - virtual void print(std::ostream &OS, const Module* = 0) const; - void print(std::ostream *OS, const Module* M = 0) const { - if (OS) print(*OS, M); - } /// dump - This method is used for debugging. void dump() const; diff --git a/include/llvm/Analysis/LoopDependenceAnalysis.h b/include/llvm/Analysis/LoopDependenceAnalysis.h index 272e0bd..1d386ba 100644 --- a/include/llvm/Analysis/LoopDependenceAnalysis.h +++ b/include/llvm/Analysis/LoopDependenceAnalysis.h @@ -25,7 +25,6 @@ #include "llvm/ADT/SmallVector.h" #include "llvm/Analysis/LoopPass.h" #include "llvm/Support/Allocator.h" -#include <iosfwd> namespace llvm { @@ -107,7 +106,6 @@ public: virtual void releaseMemory(); virtual void getAnalysisUsage(AnalysisUsage&) const; void print(raw_ostream&, const Module* = 0) const; - virtual void print(std::ostream&, const Module* = 0) const; private: FoldingSet<DependencePair> Pairs; diff --git a/include/llvm/Analysis/PointerTracking.h b/include/llvm/Analysis/PointerTracking.h index 2256839..a14bbf0 100644 --- a/include/llvm/Analysis/PointerTracking.h +++ b/include/llvm/Analysis/PointerTracking.h @@ -98,7 +98,6 @@ namespace llvm { virtual bool runOnFunction(Function &F); virtual void getAnalysisUsage(AnalysisUsage &AU) const; void print(raw_ostream &OS, const Module* = 0) const; - virtual void print(std::ostream &OS, const Module* = 0) const; private: Function *FF; TargetData *TD; diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index ea25853..8e5f540 100644 --- a/include/llvm/Analysis/ScalarEvolution.h +++ b/include/llvm/Analysis/ScalarEvolution.h @@ -30,7 +30,6 @@ #include "llvm/Support/ConstantRange.h" #include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/DenseMap.h" -#include <iosfwd> #include <map> namespace llvm { @@ -109,8 +108,6 @@ namespace llvm { /// specified stream. This should really only be used for debugging /// purposes. virtual void print(raw_ostream &OS) const = 0; - void print(std::ostream &OS) const; - void print(std::ostream *OS) const { if (OS) print(*OS); } /// dump - This method is used for debugging. /// @@ -122,11 +119,6 @@ namespace llvm { return OS; } - inline std::ostream &operator<<(std::ostream &OS, const SCEV &S) { - S.print(OS); - return OS; - } - /// SCEVCouldNotCompute - An object of this class is returned by queries that /// could not be answered. For example, if you ask for the number of /// iterations of a linked-list traversal loop, you will get one of these. diff --git a/lib/Analysis/IVUsers.cpp b/lib/Analysis/IVUsers.cpp index 9bb7e02..927740b 100644 --- a/lib/Analysis/IVUsers.cpp +++ b/lib/Analysis/IVUsers.cpp @@ -345,11 +345,6 @@ void IVUsers::print(raw_ostream &OS, const Module *M) const { } } -void IVUsers::print(std::ostream &o, const Module *M) const { - raw_os_ostream OS(o); - print(OS, M); -} - void IVUsers::dump() const { print(errs()); } diff --git a/lib/Analysis/LoopDependenceAnalysis.cpp b/lib/Analysis/LoopDependenceAnalysis.cpp index 4045dd4..32d2266 100644 --- a/lib/Analysis/LoopDependenceAnalysis.cpp +++ b/lib/Analysis/LoopDependenceAnalysis.cpp @@ -350,8 +350,3 @@ void LoopDependenceAnalysis::print(raw_ostream &OS, const Module*) const { // TODO: doc why const_cast is safe PrintLoopInfo(OS, const_cast<LoopDependenceAnalysis*>(this), this->L); } - -void LoopDependenceAnalysis::print(std::ostream &OS, const Module *M) const { - raw_os_ostream os(OS); - print(os, M); -} diff --git a/lib/Analysis/PointerTracking.cpp b/lib/Analysis/PointerTracking.cpp index d28e58e..e098647 100644 --- a/lib/Analysis/PointerTracking.cpp +++ b/lib/Analysis/PointerTracking.cpp @@ -23,9 +23,9 @@ #include "llvm/Support/InstIterator.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Target/TargetData.h" +using namespace llvm; -namespace llvm { -char PointerTracking::ID=0; +char PointerTracking::ID = 0; PointerTracking::PointerTracking() : FunctionPass(&ID) {} bool PointerTracking::runOnFunction(Function &F) { @@ -252,11 +252,5 @@ void PointerTracking::print(raw_ostream &OS, const Module* M) const { } } -void PointerTracking::print(std::ostream &o, const Module* M) const { - raw_os_ostream OS(o); - print(OS, M); -} - static RegisterPass<PointerTracking> X("pointertracking", "Track pointer bounds", false, true); -} diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index d5849b0..ca2cdca 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -121,11 +121,6 @@ void SCEV::dump() const { errs() << '\n'; } -void SCEV::print(std::ostream &o) const { - raw_os_ostream OS(o); - print(OS); -} - bool SCEV::isZero() const { if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) return SC->getValue()->isZero(); |