Make pointer parameter const for isUsedInBasicBlock.

llvm-svn: 56625
This commit is contained in:
Bill Wendling 2008-09-25 22:42:01 +00:00
parent 322300d1c2
commit 0c37421623
2 changed files with 2 additions and 2 deletions

View 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

View 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)