[llvm-commits] CVS: llvm/include/llvm/Analysis/AliasSetTracker.h CallGraph.h LoopInfo.h ScalarEvolution.h Trace.h

Bill Wendling isanbard at gmail.com
Wed Dec 6 17:32:01 PST 2006



Changes in directory llvm/include/llvm/Analysis:

AliasSetTracker.h updated: 1.28 -> 1.29
CallGraph.h updated: 1.51 -> 1.52
LoopInfo.h updated: 1.61 -> 1.62
ScalarEvolution.h updated: 1.12 -> 1.13
Trace.h updated: 1.5 -> 1.6
---
Log message:

Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp.


---
Diffs of the changes:  (+14 -14)

 AliasSetTracker.h |    8 ++++----
 CallGraph.h       |    4 ++--
 LoopInfo.h        |    4 ++--
 ScalarEvolution.h |    8 ++++----
 Trace.h           |    4 ++--
 5 files changed, 14 insertions(+), 14 deletions(-)


Index: llvm/include/llvm/Analysis/AliasSetTracker.h
diff -u llvm/include/llvm/Analysis/AliasSetTracker.h:1.28 llvm/include/llvm/Analysis/AliasSetTracker.h:1.29
--- llvm/include/llvm/Analysis/AliasSetTracker.h:1.28	Tue Nov 28 16:21:29 2006
+++ llvm/include/llvm/Analysis/AliasSetTracker.h	Wed Dec  6 19:30:30 2006
@@ -156,7 +156,7 @@
   iterator end()   const { return iterator(); }
   bool empty() const { return PtrList == 0; }
 
-  void print(llvm_ostream &OS) const {
+  void print(OStream &OS) const {
     if (OS.stream()) print(*OS.stream());
   }
   void print(std::ostream &OS) const;
@@ -248,7 +248,7 @@
   bool aliasesCallSite(CallSite CS, AliasAnalysis &AA) const;
 };
 
-inline llvm_ostream& operator<<(llvm_ostream &OS, const AliasSet &AS) {
+inline OStream& operator<<(OStream &OS, const AliasSet &AS) {
   AS.print(OS);
   return OS;
 }
@@ -361,7 +361,7 @@
   iterator begin() { return AliasSets.begin(); }
   iterator end()   { return AliasSets.end(); }
 
-  void print(llvm_ostream &OS) const {
+  void print(OStream &OS) const {
     if (OS.stream()) print(*OS.stream());
   }
   void print(std::ostream &OS) const;
@@ -390,7 +390,7 @@
   AliasSet *findAliasSetForCallSite(CallSite CS);
 };
 
-inline llvm_ostream& operator<<(llvm_ostream &OS, const AliasSetTracker &AST) {
+inline OStream& operator<<(OStream &OS, const AliasSetTracker &AST) {
   AST.print(OS);
   return OS;
 }


Index: llvm/include/llvm/Analysis/CallGraph.h
diff -u llvm/include/llvm/Analysis/CallGraph.h:1.51 llvm/include/llvm/Analysis/CallGraph.h:1.52
--- llvm/include/llvm/Analysis/CallGraph.h:1.51	Tue Nov 28 18:19:40 2006
+++ llvm/include/llvm/Analysis/CallGraph.h	Wed Dec  6 19:30:30 2006
@@ -152,7 +152,7 @@
   ///
   void initialize(Module &M);
 
-  void print(llvm_ostream &o, const Module *M) const {
+  void print(OStream &o, const Module *M) const {
     if (o.stream()) print(*o.stream(), M);
   }
   virtual void print(std::ostream &o, const Module *M) const;
@@ -201,7 +201,7 @@
   /// dump - Print out this call graph node.
   ///
   void dump() const;
-  void print(llvm_ostream &OS) const {
+  void print(OStream &OS) const {
     if (OS.stream()) print(*OS.stream());
   }
   void print(std::ostream &OS) const;


Index: llvm/include/llvm/Analysis/LoopInfo.h
diff -u llvm/include/llvm/Analysis/LoopInfo.h:1.61 llvm/include/llvm/Analysis/LoopInfo.h:1.62
--- llvm/include/llvm/Analysis/LoopInfo.h:1.61	Tue Nov 28 16:45:17 2006
+++ llvm/include/llvm/Analysis/LoopInfo.h	Wed Dec  6 19:30:30 2006
@@ -217,7 +217,7 @@
   /// the mapping in the LoopInfo class.
   void removeBlockFromLoop(BasicBlock *BB);
 
-  void print(llvm_ostream &O, unsigned Depth = 0) const {
+  void print(OStream &O, unsigned Depth = 0) const {
     if (O.stream()) print(*O.stream(), Depth);
   }
   void print(std::ostream &O, unsigned Depth = 0) const;
@@ -283,7 +283,7 @@
   virtual bool runOnFunction(Function &F);
 
   virtual void releaseMemory();
-  void print(llvm_ostream &O, const Module* = 0) const {
+  void print(OStream &O, const Module* = 0) const {
     if (O.stream()) print(*O.stream());
   }
   void print(std::ostream &O, const Module* = 0) const;


Index: llvm/include/llvm/Analysis/ScalarEvolution.h
diff -u llvm/include/llvm/Analysis/ScalarEvolution.h:1.12 llvm/include/llvm/Analysis/ScalarEvolution.h:1.13
--- llvm/include/llvm/Analysis/ScalarEvolution.h:1.12	Tue Nov 28 16:21:29 2006
+++ llvm/include/llvm/Analysis/ScalarEvolution.h	Wed Dec  6 19:30:30 2006
@@ -97,7 +97,7 @@
     /// print - Print out the internal representation of this scalar to the
     /// specified stream.  This should really only be used for debugging
     /// purposes.
-    void print(llvm_ostream &OS) const {
+    void print(OStream &OS) const {
       if (OS.stream()) print(*OS.stream());
     }
     virtual void print(std::ostream &OS) const = 0;
@@ -107,7 +107,7 @@
     void dump() const;
   };
 
-  inline llvm_ostream &operator<<(llvm_ostream &OS, const SCEV &S) {
+  inline OStream &operator<<(OStream &OS, const SCEV &S) {
     S.print(OS);
     return OS;
   }
@@ -128,7 +128,7 @@
     virtual bool isLoopInvariant(const Loop *L) const;
     virtual const Type *getType() const;
     virtual bool hasComputableLoopEvolution(const Loop *L) const;
-    void print(llvm_ostream &OS) const {
+    void print(OStream &OS) const {
       if (OS.stream()) print(*OS.stream());
     }
     virtual void print(std::ostream &OS) const;
@@ -242,7 +242,7 @@
     virtual bool runOnFunction(Function &F);
     virtual void releaseMemory();
     virtual void getAnalysisUsage(AnalysisUsage &AU) const;
-    void print(llvm_ostream &OS, const Module* = 0) const {
+    void print(OStream &OS, const Module* = 0) const {
       if (OS.stream()) print(*OS.stream());
     }
     virtual void print(std::ostream &OS, const Module* = 0) const;


Index: llvm/include/llvm/Analysis/Trace.h
diff -u llvm/include/llvm/Analysis/Trace.h:1.5 llvm/include/llvm/Analysis/Trace.h:1.6
--- llvm/include/llvm/Analysis/Trace.h:1.5	Tue Nov 28 16:45:17 2006
+++ llvm/include/llvm/Analysis/Trace.h	Wed Dec  6 19:30:30 2006
@@ -18,11 +18,11 @@
 #ifndef LLVM_ANALYSIS_TRACE_H
 #define LLVM_ANALYSIS_TRACE_H
 
+#include "llvm/Support/Streams.h"
 #include <vector>
 #include <cassert>
 
 namespace llvm {
-  class llvm_ostream;
   class BasicBlock;
   class Function;
   class Module;
@@ -106,7 +106,7 @@
 
   /// print - Write trace to output stream.
   ///
-  void print (llvm_ostream &O) const;
+  void print (OStream &O) const;
 
   /// dump - Debugger convenience method; writes trace to standard error
   /// output stream.






More information about the llvm-commits mailing list