aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2005-05-01 16:22:41 +0000
committerTanya Lattner <tonic@nondot.org>2005-05-01 16:22:41 +0000
commit21d6ff546d0c9cd1a631fe7940a3988a2472198c (patch)
tree93deeabd25cc134b2f227c57034bbea0686ff084
parent9d6b6280c788e92753d3f8e3e67017e36d14eb12 (diff)
Add accessor method,
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21649 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/LoopInfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h
index 83befaf378..acd739b6b4 100644
--- a/include/llvm/Analysis/LoopInfo.h
+++ b/include/llvm/Analysis/LoopInfo.h
@@ -74,6 +74,7 @@ public:
/// iterator/begin/end - Return the loops contained entirely within this loop.
///
+ const std::vector<Loop*> &getSubLoops() const { return SubLoops; }
typedef std::vector<Loop*>::const_iterator iterator;
iterator begin() const { return SubLoops.begin(); }
iterator end() const { return SubLoops.end(); }