diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-26 16:15:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-26 16:15:54 +0000 |
commit | fce46ef8034ee9d08485e5be98f92e9f1a860091 (patch) | |
tree | 3e34cc997e0af9ff3afe5e4c5e2fad54bd6bc6b2 /lib/Analysis/LoopInfo.cpp | |
parent | de39b71455143f80602a27481c4de82a5cf25db0 (diff) |
Fix printing of loop information
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopInfo.cpp')
-rw-r--r-- | lib/Analysis/LoopInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 0aee306e7c..479cbf43d1 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<const Loop*>(OS, "\n")); + for (unsigned i = 0; i < TopLevelLoops.size(); ++i) + TopLevelLoops[i]->print(OS); } Loop *LoopInfo::ConsiderForLoop(BasicBlock *BB, const DominatorSet &DS) { |