[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp

John Criswell criswell at cs.uiuc.edu
Mon Dec 11 11:16:10 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

ScheduleDAGSimple.cpp updated: 1.20 -> 1.21
---
Log message:

It seems the llvm::OStream class does not handle stream manipulators.
For now, just grab the stream and perform the output on it directly.


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

 ScheduleDAGSimple.cpp |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp:1.20 llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp:1.21
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp:1.20	Thu Dec  7 14:04:42 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp	Mon Dec 11 13:15:36 2006
@@ -713,13 +713,13 @@
 void ScheduleDAGSimple::printNI(OStream &O, NodeInfo *NI) const {
 #ifndef NDEBUG
   SDNode *Node = NI->Node;
-  O << " "
-    << std::hex << Node << std::dec
-    << ", Lat=" << NI->Latency
-    << ", Slot=" << NI->Slot
-    << ", ARITY=(" << Node->getNumOperands() << ","
-    << Node->getNumValues() << ")"
-    << " " << Node->getOperationName(&DAG);
+  *(O.stream()) << " "
+                << std::hex << Node << std::dec
+                << ", Lat=" << NI->Latency
+                << ", Slot=" << NI->Slot
+                << ", ARITY=(" << Node->getNumOperands() << ","
+                << Node->getNumValues() << ")"
+                << " " << Node->getOperationName(&DAG);
   if (isFlagDefiner(Node)) O << "<#";
   if (isFlagUser(Node)) O << ">#";
 #endif






More information about the llvm-commits mailing list