Make interval partition print correctly, patch contributed by

Vladimir Prus!

llvm-svn: 21566
This commit is contained in:
Chris Lattner 2005-04-26 14:48:28 +00:00
parent bd43b9db9d
commit eb2a461acf
1 changed files with 2 additions and 2 deletions

View File

@ -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,