summaryrefslogtreecommitdiff
path: root/lib/Analysis/IntervalPartition.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-26 14:48:28 +0000
committerChris Lattner <sabre@nondot.org>2005-04-26 14:48:28 +0000
commit318c1498237bb5d2f66b896ef0cb4ddfc7dc4caf (patch)
treec70660855e3bf13cda268d92c09e7f5468c41d8e /lib/Analysis/IntervalPartition.cpp
parent93b94a6ccf63e8dfec506b6752c0be5e493b6255 (diff)
downloadllvm-318c1498237bb5d2f66b896ef0cb4ddfc7dc4caf.tar.gz
llvm-318c1498237bb5d2f66b896ef0cb4ddfc7dc4caf.tar.bz2
llvm-318c1498237bb5d2f66b896ef0cb4ddfc7dc4caf.tar.xz
Make interval partition print correctly, patch contributed by
Vladimir Prus! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IntervalPartition.cpp')
-rw-r--r--lib/Analysis/IntervalPartition.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/IntervalPartition.cpp b/lib/Analysis/IntervalPartition.cpp
index d12c0fdbc7..a6b85d4b90 100644
--- a/lib/Analysis/IntervalPartition.cpp
+++ b/lib/Analysis/IntervalPartition.cpp
@@ -31,8 +31,8 @@ void IntervalPartition::destroy() {
}
void IntervalPartition::print(std::ostream &O, const Module*) const {
- std::copy(Intervals.begin(), Intervals.end(),
- std::ostream_iterator<const Interval *>(O, "\n"));
+ for(unsigned i = 0, e = Intervals.size(); i != e; ++i)
+ Intervals[i]->print(O);
}
// addIntervalToPartition - Add an interval to the internal list of intervals,