Make pointer parameter const for isUsedInBasicBlock.
authorBill Wendling <isanbard@gmail.com>
Thu, 25 Sep 2008 22:42:01 +0000 (22:42 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 25 Sep 2008 22:42:01 +0000 (22:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56625 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Value.h
lib/VMCore/Value.cpp

index 1d2c61ea1991a48126b4a697c3ef93bede232a6a..f9edba116b5fcbe0a48febf21f9ad098b7735dca 100644 (file)
@@ -165,7 +165,7 @@ public:
   ///
   bool hasNUsesOrMore(unsigned N) const;
 
-  bool isUsedInBasicBlock(BasicBlock *BB) const;
+  bool isUsedInBasicBlock(const BasicBlock *BB) const;
 
   /// getNumUses - This method computes the number of uses of this Value.  This
   /// is a linear time operation.  Use hasOneUse, hasNUses, or hasMoreThanNUses
index bc5b7a9f81cb5d4b892740f4a85790bbe3b87dab..d143b6bf97e86d7f1e90d3fac85f6d0d26bb7f05 100644 (file)
@@ -95,7 +95,7 @@ bool Value::hasNUsesOrMore(unsigned N) const {
 
 /// isUsedInBasicBlock - Return true if this value is used in the specified
 /// basic block.
-bool Value::isUsedInBasicBlock(BasicBlock *BB) const {
+bool Value::isUsedInBasicBlock(const BasicBlock *BB) const {
   for (use_const_iterator I = use_begin(), E = use_end(); I != E; ++I) {
     const Instruction *User = dyn_cast<Instruction>(*I);
     if (User && User->getParent() == BB)