[llvm-commits] CVS: llvm/lib/Analysis/LoopInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jan 7 18:10:04 PST 2004
Changes in directory llvm/lib/Analysis:
LoopInfo.cpp updated: 1.45 -> 1.46
---
Log message:
Improve encapsulation in the Loop and LoopInfo classes by eliminating the
getSubLoops/getTopLevelLoops methods, replacing them with iterator-based
accessors.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Analysis/LoopInfo.cpp
diff -u llvm/lib/Analysis/LoopInfo.cpp:1.45 llvm/lib/Analysis/LoopInfo.cpp:1.46
--- llvm/lib/Analysis/LoopInfo.cpp:1.45 Tue Nov 11 16:41:31 2003
+++ llvm/lib/Analysis/LoopInfo.cpp Wed Jan 7 18:09:01 2004
@@ -72,8 +72,8 @@
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 {
More information about the llvm-commits
mailing list