diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-26 14:48:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-26 14:48:28 +0000 |
commit | 318c1498237bb5d2f66b896ef0cb4ddfc7dc4caf (patch) | |
tree | c70660855e3bf13cda268d92c09e7f5468c41d8e /lib/Analysis/IntervalPartition.cpp | |
parent | 93b94a6ccf63e8dfec506b6752c0be5e493b6255 (diff) |
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.cpp | 4 |
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, |