From fce46ef8034ee9d08485e5be98f92e9f1a860091 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 26 Sep 2002 16:15:54 +0000 Subject: [PATCH] Fix printing of loop information git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3941 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/LoopInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {