mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +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:
@@ -165,7 +165,7 @@ public:
|
|||||||
///
|
///
|
||||||
bool hasNUsesOrMore(unsigned N) const;
|
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
|
/// getNumUses - This method computes the number of uses of this Value. This
|
||||||
/// is a linear time operation. Use hasOneUse, hasNUses, or hasMoreThanNUses
|
/// 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
|
/// isUsedInBasicBlock - Return true if this value is used in the specified
|
||||||
/// basic block.
|
/// 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) {
|
for (use_const_iterator I = use_begin(), E = use_end(); I != E; ++I) {
|
||||||
const Instruction *User = dyn_cast<Instruction>(*I);
|
const Instruction *User = dyn_cast<Instruction>(*I);
|
||||||
if (User && User->getParent() == BB)
|
if (User && User->getParent() == BB)
|
||||||
|
Reference in New Issue
Block a user