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 | a51b767df42019eb155281f3a64a16593c14f7e9 (patch) | |
tree | d7ee830043bc58948a63b72a2dfc611067b608ba | |
parent | 84369b323e51ced9070659cadb15e2aacb5d0ea5 (diff) | |
download | external_llvm-a51b767df42019eb155281f3a64a16593c14f7e9.zip external_llvm-a51b767df42019eb155281f3a64a16593c14f7e9.tar.gz external_llvm-a51b767df42019eb155281f3a64a16593c14f7e9.tar.bz2 |
Allow const bb's to be checked for containment in a loop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2754 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/LoopInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index bb9058c..16605e5 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/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; } |