From a51b767df42019eb155281f3a64a16593c14f7e9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 3 Jun 2002 22:10:48 +0000 Subject: 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 --- include/llvm/Analysis/LoopInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &getSubLoops() const { return SubLoops; } -- cgit v1.1