projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de39b71
)
Fix printing of loop information
author
Chris Lattner
<sabre@nondot.org>
Thu, 26 Sep 2002 16:15:54 +0000
(16:15 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 26 Sep 2002 16:15:54 +0000
(16:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3941
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/LoopInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/LoopInfo.cpp
b/lib/Analysis/LoopInfo.cpp
index 0aee306e7cd2de5bb4c702738fe28534ea6d5da0..479cbf43d1747cf63465044876258a6239e37782 100644
(file)
--- 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) {