From: Chris Lattner Date: Thu, 26 Sep 2002 16:15:54 +0000 (+0000) Subject: Fix printing of loop information X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fce46ef8034ee9d08485e5be98f92e9f1a860091;p=oota-llvm.git Fix printing of loop information git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3941 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 0aee306e7cd..479cbf43d17 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -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(OS, "\n")); + for (unsigned i = 0; i < TopLevelLoops.size(); ++i) + TopLevelLoops[i]->print(OS); } Loop *LoopInfo::ConsiderForLoop(BasicBlock *BB, const DominatorSet &DS) {