summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-03-25 23:06:16 +0000
committerGabor Greif <ggreif@gmail.com>2010-03-25 23:06:16 +0000
commitc78d720f023093b3b59d7bde30c96f18dedb5b53 (patch)
tree7f9952c4c9344fa27763432e5df6c902f83e957e /llvm/lib/VMCore/Function.cpp
parentd821f4ac60e0a6228f73e74bed0c2aa6578e6d39 (diff)
downloadbcm5719-llvm-c78d720f023093b3b59d7bde30c96f18dedb5b53.tar.gz
bcm5719-llvm-c78d720f023093b3b59d7bde30c96f18dedb5b53.zip
rename use_const_iterator to const_use_iterator for consistency's sake
llvm-svn: 99564
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r--llvm/lib/VMCore/Function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp
index 575381e0303..b55a371d690 100644
--- a/llvm/lib/VMCore/Function.cpp
+++ b/llvm/lib/VMCore/Function.cpp
@@ -404,7 +404,7 @@ Function *Intrinsic::getDeclaration(Module *M, ID id, const Type **Tys,
/// hasAddressTaken - returns true if there are any uses of this function
/// other than direct calls or invokes to it.
bool Function::hasAddressTaken(const User* *PutOffender) const {
- for (Value::use_const_iterator I = use_begin(), E = use_end(); I != E; ++I) {
+ for (Value::const_use_iterator I = use_begin(), E = use_end(); I != E; ++I) {
const User *U = *I;
if (!isa<CallInst>(U) && !isa<InvokeInst>(U))
return PutOffender ? (*PutOffender = U, true) : true;
OpenPOWER on IntegriCloud