[llvm-commits] [llvm] r56625 - in /llvm/trunk: include/llvm/Value.h lib/VMCore/Value.cpp
Bill Wendling
isanbard at gmail.com
Thu Sep 25 15:42:03 PDT 2008
Author: void
Date: Thu Sep 25 17:42:01 2008
New Revision: 56625
URL: http://llvm.org/viewvc/llvm-project?rev=56625&view=rev
Log:
Make pointer parameter const for isUsedInBasicBlock.
Modified:
llvm/trunk/include/llvm/Value.h
llvm/trunk/lib/VMCore/Value.cpp
Modified: llvm/trunk/include/llvm/Value.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Value.h?rev=56625&r1=56624&r2=56625&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Value.h (original)
+++ llvm/trunk/include/llvm/Value.h Thu Sep 25 17:42:01 2008
@@ -165,7 +165,7 @@
///
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
Modified: llvm/trunk/lib/VMCore/Value.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Value.cpp?rev=56625&r1=56624&r2=56625&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Value.cpp (original)
+++ llvm/trunk/lib/VMCore/Value.cpp Thu Sep 25 17:42:01 2008
@@ -95,7 +95,7 @@
/// 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)
More information about the llvm-commits
mailing list