forked from OSchip/llvm-project
Make pointer parameter const for isUsedInBasicBlock.
llvm-svn: 56625
This commit is contained in:
parent
322300d1c2
commit
0c37421623
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue