mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 09:37:20 +00:00
Make pointer parameter const for isUsedInBasicBlock.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56625 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0598866c05
commit
c4f72dd6e7
@ -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…
x
Reference in New Issue
Block a user