summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2006-12-11 19:15:36 +0000
committerJohn Criswell <criswell@uiuc.edu>2006-12-11 19:15:36 +0000
commitb3b285185fa2323826334d89d7f49fa7da76421d (patch)
treeda0ea80f104c91333c1fff8bd7d9083b75d6f24a
parente9a203c4e55aa10b5f0ce92a27166764295da3a6 (diff)
downloadbcm5719-llvm-b3b285185fa2323826334d89d7f49fa7da76421d.tar.gz
bcm5719-llvm-b3b285185fa2323826334d89d7f49fa7da76421d.zip
It seems the llvm::OStream class does not handle stream manipulators.
For now, just grab the stream and perform the output on it directly. llvm-svn: 32441
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp
index f64e65eafa1..65da788961b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp
@@ -713,13 +713,13 @@ static bool isFlagUser(SDNode *A) {
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
OpenPOWER on IntegriCloud