diff options
author | Chris Lattner <sabre@nondot.org> | 2002-06-03 22:10:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-06-03 22:10:48 +0000 |
commit | e7779b56a0616745ccf781d7411f8d544082ca27 (patch) | |
tree | d60573e314b40ed853f5167c94aaf6827e19208c | |
parent | 194138cd08efe05449d20bd62b60e64cedefd140 (diff) | |
download | bcm5719-llvm-e7779b56a0616745ccf781d7411f8d544082ca27.tar.gz bcm5719-llvm-e7779b56a0616745ccf781d7411f8d544082ca27.zip |
Allow const bb's to be checked for containment in a loop
llvm-svn: 2754
-rw-r--r-- | llvm/include/llvm/Analysis/LoopInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Analysis/LoopInfo.h b/llvm/include/llvm/Analysis/LoopInfo.h index bb9058c256e..16605e5a527 100644 --- a/llvm/include/llvm/Analysis/LoopInfo.h +++ b/llvm/include/llvm/Analysis/LoopInfo.h @@ -34,7 +34,7 @@ public: inline BasicBlock *getHeader() const { return Blocks.front(); } // contains - Return true of the specified basic block is in this loop - bool contains(BasicBlock *BB) const; + bool contains(const BasicBlock *BB) const; // getSubLoops - Return the loops contained entirely within this loop inline const std::vector<Loop*> &getSubLoops() const { return SubLoops; } |