summaryrefslogtreecommitdiff
path: root/lib/Analysis/LoopInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-08 00:09:44 +0000
committerChris Lattner <sabre@nondot.org>2004-01-08 00:09:44 +0000
commit329c1c6c949d07e3fe9722ec633b4258217fd99d (patch)
tree34270cc171608437ca572bfc081ea6bab2fe0d80 /lib/Analysis/LoopInfo.cpp
parentf789d409faec2c133039d1b1a0c27f2bb7065cd8 (diff)
downloadllvm-329c1c6c949d07e3fe9722ec633b4258217fd99d.tar.gz
llvm-329c1c6c949d07e3fe9722ec633b4258217fd99d.tar.bz2
llvm-329c1c6c949d07e3fe9722ec633b4258217fd99d.tar.xz
Improve encapsulation in the Loop and LoopInfo classes by eliminating the
getSubLoops/getTopLevelLoops methods, replacing them with iterator-based accessors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopInfo.cpp')
-rw-r--r--lib/Analysis/LoopInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp
index 68e7d2f845..41c4b555bd 100644
--- a/lib/Analysis/LoopInfo.cpp
+++ b/lib/Analysis/LoopInfo.cpp
@@ -72,8 +72,8 @@ void Loop::print(std::ostream &OS, unsigned Depth) const {
OS << "\n";
- for (unsigned i = 0, e = getSubLoops().size(); i != e; ++i)
- getSubLoops()[i]->print(OS, Depth+2);
+ for (iterator I = begin(), E = end(); I != E; ++I)
+ (*I)->print(OS, Depth+2);
}
void Loop::dump() const {