[llvm-commits] CVS: llvm/lib/Analysis/Interval.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jul 14 19:31:52 PDT 2004
Changes in directory llvm/lib/Analysis:
Interval.cpp updated: 1.15 -> 1.16
---
Log message:
Fixes for PR341: http://llvm.cs.uiuc.edu/PR341
---
Diffs of the changes: (+10 -7)
Index: llvm/lib/Analysis/Interval.cpp
diff -u llvm/lib/Analysis/Interval.cpp:1.15 llvm/lib/Analysis/Interval.cpp:1.16
--- llvm/lib/Analysis/Interval.cpp:1.15 Tue Nov 11 16:41:31 2003
+++ llvm/lib/Analysis/Interval.cpp Wed Jul 14 21:31:42 2004
@@ -41,14 +41,17 @@
<< "Interval Contents:\n";
// Print out all of the basic blocks in the interval...
- std::copy(Nodes.begin(), Nodes.end(),
- std::ostream_iterator<BasicBlock*>(o, "\n"));
+ for (std::vector<BasicBlock*>::const_iterator I = Nodes.begin(),
+ E = Nodes.end(); I != E; ++I)
+ o << **I << "\n";
o << "Interval Predecessors:\n";
- std::copy(Predecessors.begin(), Predecessors.end(),
- std::ostream_iterator<BasicBlock*>(o, "\n"));
-
+ for (std::vector<BasicBlock*>::const_iterator I = Predecessors.begin(),
+ E = Predecessors.end(); I != E; ++I)
+ o << **I << "\n";
+
o << "Interval Successors:\n";
- std::copy(Successors.begin(), Successors.end(),
- std::ostream_iterator<BasicBlock*>(o, "\n"));
+ for (std::vector<BasicBlock*>::const_iterator I = Successors.begin(),
+ E = Successors.end(); I != E; ++I)
+ o << **I << "\n";
}
More information about the llvm-commits
mailing list