[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveInterval.h MachineBasicBlock.h MachineConstantPool.h MachineInstr.h SchedGraphCommon.h

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



Changes in directory llvm/include/llvm/CodeGen:

LiveInterval.h updated: 1.29 -> 1.30
MachineBasicBlock.h updated: 1.50 -> 1.51
MachineConstantPool.h updated: 1.23 -> 1.24
MachineInstr.h updated: 1.204 -> 1.205
SchedGraphCommon.h updated: 1.15 -> 1.16
---
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:  (+18 -18)

 LiveInterval.h        |    8 ++++----
 MachineBasicBlock.h   |    4 ++--
 MachineConstantPool.h |    8 ++++----
 MachineInstr.h        |    6 +++---
 SchedGraphCommon.h    |   10 +++++-----
 5 files changed, 18 insertions(+), 18 deletions(-)


Index: llvm/include/llvm/CodeGen/LiveInterval.h
diff -u llvm/include/llvm/CodeGen/LiveInterval.h:1.29 llvm/include/llvm/CodeGen/LiveInterval.h:1.30
--- llvm/include/llvm/CodeGen/LiveInterval.h:1.29	Tue Nov 28 18:39:47 2006
+++ llvm/include/llvm/CodeGen/LiveInterval.h	Wed Dec  6 19:30:31 2006
@@ -62,7 +62,7 @@
   };
 
   std::ostream& operator<<(std::ostream& os, const LiveRange &LR);
-  inline llvm_ostream& operator<<(llvm_ostream& os, const LiveRange &LR) {
+  inline OStream& operator<<(OStream& os, const LiveRange &LR) {
     if (os.stream()) *os.stream() << LR;
     return os;
   }
@@ -258,9 +258,9 @@
       return beginNumber() < other.beginNumber();
     }
 
-    void print(llvm_ostream OS, const MRegisterInfo *MRI = 0) const;
+    void print(OStream OS, const MRegisterInfo *MRI = 0) const;
     void print(std::ostream &OS, const MRegisterInfo *MRI = 0) const {
-      print(llvm_ostream(OS), MRI);
+      print(OStream(OS), MRI);
     }
     void dump() const;
 
@@ -271,7 +271,7 @@
     LiveInterval& operator=(const LiveInterval& rhs); // DO NOT IMPLEMENT
   };
 
-  inline llvm_ostream &operator<<(llvm_ostream &OS, const LiveInterval &LI) {
+  inline OStream &operator<<(OStream &OS, const LiveInterval &LI) {
     LI.print(OS);
     return OS;
   }


Index: llvm/include/llvm/CodeGen/MachineBasicBlock.h
diff -u llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.50 llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.51
--- llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.50	Tue Nov 28 16:21:29 2006
+++ llvm/include/llvm/CodeGen/MachineBasicBlock.h	Wed Dec  6 19:30:31 2006
@@ -189,7 +189,7 @@
 
   // Debugging methods.
   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;
@@ -226,7 +226,7 @@
 };
 
 std::ostream& operator<<(std::ostream &OS, const MachineBasicBlock &MBB);
-inline llvm_ostream& operator<<(llvm_ostream &OS, const MachineBasicBlock &MBB){
+inline OStream& operator<<(OStream &OS, const MachineBasicBlock &MBB){
   if (OS.stream()) *OS.stream() << MBB;
   return OS;
 }


Index: llvm/include/llvm/CodeGen/MachineConstantPool.h
diff -u llvm/include/llvm/CodeGen/MachineConstantPool.h:1.23 llvm/include/llvm/CodeGen/MachineConstantPool.h:1.24
--- llvm/include/llvm/CodeGen/MachineConstantPool.h:1.23	Tue Nov 28 16:21:29 2006
+++ llvm/include/llvm/CodeGen/MachineConstantPool.h	Wed Dec  6 19:30:31 2006
@@ -49,14 +49,14 @@
 
   /// print - Implement operator<<...
   ///
-  void print(llvm_ostream &O) const {
+  void print(OStream &O) const {
     if (O.stream()) print(*O.stream());
   }
   virtual void print(std::ostream &O) const = 0;
 };
 
-inline llvm_ostream &operator<<(llvm_ostream &OS,
-                                const MachineConstantPoolValue &V) {
+inline OStream &operator<<(OStream &OS,
+                           const MachineConstantPoolValue &V) {
   V.print(OS);
   return OS;
 }
@@ -143,7 +143,7 @@
   /// print - Used by the MachineFunction printer to print information about
   /// constant pool objects.  Implemented in MachineFunction.cpp
   ///
-  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/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.204 llvm/include/llvm/CodeGen/MachineInstr.h:1.205
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.204	Wed Dec  6 02:27:17 2006
+++ llvm/include/llvm/CodeGen/MachineInstr.h	Wed Dec  6 19:30:31 2006
@@ -285,7 +285,7 @@
     IsDead = false;
   }
 
-  friend llvm_ostream& operator<<(llvm_ostream& os, const MachineOperand& mop) {
+  friend OStream& operator<<(OStream& os, const MachineOperand& mop) {
     if (os.stream()) *os.stream() << mop;
     return os;
   }
@@ -397,12 +397,12 @@
   //
   // Debugging support
   //
-  void print(llvm_ostream &OS, const TargetMachine *TM) const {
+  void print(OStream &OS, const TargetMachine *TM) const {
     if (OS.stream()) print(*OS.stream(), TM);
   }
   void print(std::ostream &OS, const TargetMachine *TM) const;
   void dump() const;
-  friend llvm_ostream& operator<<(llvm_ostream& os, const MachineInstr& minstr){
+  friend OStream& operator<<(OStream& os, const MachineInstr& minstr){
     if (os.stream()) *os.stream() << minstr;
     return os;
   }


Index: llvm/include/llvm/CodeGen/SchedGraphCommon.h
diff -u llvm/include/llvm/CodeGen/SchedGraphCommon.h:1.15 llvm/include/llvm/CodeGen/SchedGraphCommon.h:1.16
--- llvm/include/llvm/CodeGen/SchedGraphCommon.h:1.15	Tue Nov 28 16:21:29 2006
+++ llvm/include/llvm/CodeGen/SchedGraphCommon.h	Wed Dec  6 19:30:31 2006
@@ -70,7 +70,7 @@
   void dump(int indent=0) const;
 
   // Debugging support
-  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;
@@ -96,8 +96,8 @@
 };
 
 // ostream << operator for SchedGraphNode class
-inline llvm_ostream &operator<<(llvm_ostream &os,
-                                const SchedGraphNodeCommon &node) {
+inline OStream &operator<<(OStream &os,
+                           const SchedGraphNodeCommon &node) {
   node.print(os);
   return os;
 }
@@ -188,7 +188,7 @@
 
 public:
   // Debugging support
-  void print(llvm_ostream &os) const {
+  void print(OStream &os) const {
     if (os.stream()) print(*os.stream());
   }
   void print(std::ostream &os) const;
@@ -200,7 +200,7 @@
 };
 
 // ostream << operator for SchedGraphNode class
-inline llvm_ostream &operator<<(llvm_ostream &os, const SchedGraphEdge &edge) {
+inline OStream &operator<<(OStream &os, const SchedGraphEdge &edge) {
   edge.print(os);
   return os;
 }






More information about the llvm-commits mailing list