Fix printing of loop information

llvm-svn: 3941
This commit is contained in:
Chris Lattner 2002-09-26 16:15:54 +00:00
parent 51dd965704
commit 8b97a81265

View File

@ -76,8 +76,8 @@ void LoopInfo::getAnalysisUsage(AnalysisUsage &AU) const {
}
void LoopInfo::print(std::ostream &OS) const {
std::copy(getTopLevelLoops().begin(), getTopLevelLoops().end(),
std::ostream_iterator<const Loop*>(OS, "\n"));
for (unsigned i = 0; i < TopLevelLoops.size(); ++i)
TopLevelLoops[i]->print(OS);
}
Loop *LoopInfo::ConsiderForLoop(BasicBlock *BB, const DominatorSet &DS) {