Add accessor method,
authorTanya Lattner <tonic@nondot.org>
Sun, 1 May 2005 16:22:41 +0000 (16:22 +0000)
committerTanya Lattner <tonic@nondot.org>
Sun, 1 May 2005 16:22:41 +0000 (16:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21649 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/LoopInfo.h

index 83befaf37823cd210dd3923b9e15b90f050de2fb..acd739b6b4436f7a80313f9807003405bd8c39e2 100644 (file)
@@ -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(); }