remove a few dead insertion methods.
authorChris Lattner <sabre@nondot.org>
Mon, 24 Aug 2009 02:39:26 +0000 (02:39 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 Aug 2009 02:39:26 +0000 (02:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79882 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/IVUsers.h
include/llvm/Analysis/LoopDependenceAnalysis.h
include/llvm/Analysis/PointerTracking.h
include/llvm/Analysis/ScalarEvolution.h
lib/Analysis/IVUsers.cpp
lib/Analysis/LoopDependenceAnalysis.cpp
lib/Analysis/PointerTracking.cpp
lib/Analysis/ScalarEvolution.cpp

index 18e6fec97db713c97bed7610c6d0b788cd0e0496..948c675924242f7bfe3672caa82e5c2d33d44e19 100644 (file)
@@ -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;
index 272e0bd4d362c57a1b9ba705a1cd1e0ef6b3d433..1d386ba88804f8dca5706e2897efce2453694a95 100644 (file)
@@ -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;
index 2256839ec2a11583371ffa7dfc5b50e3ba7c8d6d..a14bbf0290ea5fd7be675a004717e8bd5256b88f 100644 (file)
@@ -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;
index ea25853edaaca2519f3622191f0ec996ca450739..8e5f540c5e973781fae00e7765de89cfd64b68ab 100644 (file)
@@ -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.
index 9bb7e0280e892b5f61a67f85ef36513df2dc10ba..927740b338e6a30181a3b0564e88c8daf2209daa 100644 (file)
@@ -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());
 }
index 4045dd4de258ce82d5f66a755dfbe374c63834e9..32d22662c341586e2be6a5a51c8d9a37e17da650 100644 (file)
@@ -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);
-}
index d28e58e1013554228f66aaf6f60c9ca87a3dea9e..e098647887b8bfe850cc6a20df433568d10ccc7b 100644 (file)
@@ -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);
-}
index d5849b0e1d86151ec232ff3b97e2e77919d94ee2..ca2cdca673cab6704face70e52a620f644bbddd7 100644 (file)
@@ -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();