diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-03-25 23:06:16 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-03-25 23:06:16 +0000 |
commit | 60ad781c61815ca5b8dc2a45a102e1c8af65992f (patch) | |
tree | 84f1bf55e1ff40a4bba36e28dcf3b807723492cd /include | |
parent | ac2884a717daf3ad2aa8425320795d661e8a980b (diff) | |
download | external_llvm-60ad781c61815ca5b8dc2a45a102e1c8af65992f.zip external_llvm-60ad781c61815ca5b8dc2a45a102e1c8af65992f.tar.gz external_llvm-60ad781c61815ca5b8dc2a45a102e1c8af65992f.tar.bz2 |
rename use_const_iterator to const_use_iterator for consistency's sake
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/CFG.h | 2 | ||||
-rw-r--r-- | include/llvm/Support/CallSite.h | 2 | ||||
-rw-r--r-- | include/llvm/Value.h | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h index 3875f0b..621d50e 100644 --- a/include/llvm/Support/CFG.h +++ b/include/llvm/Support/CFG.h @@ -67,7 +67,7 @@ public: typedef PredIterator<BasicBlock, Value::use_iterator> pred_iterator; typedef PredIterator<const BasicBlock, - Value::use_const_iterator> pred_const_iterator; + Value::const_use_iterator> pred_const_iterator; inline pred_iterator pred_begin(BasicBlock *BB) { return pred_iterator(BB); } inline pred_const_iterator pred_begin(const BasicBlock *BB) { diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h index 9d9a30e..480535f 100644 --- a/include/llvm/Support/CallSite.h +++ b/include/llvm/Support/CallSite.h @@ -196,7 +196,7 @@ public: bool isCallee(Value::use_iterator UI) const { return getCallee() == &UI.getUse(); } - bool isCallee(Value::use_const_iterator UI) const { + bool isCallee(Value::const_use_iterator UI) const { return getCallee() == &UI.getUse(); } private: diff --git a/include/llvm/Value.h b/include/llvm/Value.h index d06cbc0..992a90c 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -157,13 +157,13 @@ public: // Methods for handling the chain of uses of this Value. // typedef value_use_iterator<User> use_iterator; - typedef value_use_iterator<const User> use_const_iterator; + typedef value_use_iterator<const User> const_use_iterator; bool use_empty() const { return UseList == 0; } use_iterator use_begin() { return use_iterator(UseList); } - use_const_iterator use_begin() const { return use_const_iterator(UseList); } + const_use_iterator use_begin() const { return const_use_iterator(UseList); } use_iterator use_end() { return use_iterator(0); } - use_const_iterator use_end() const { return use_const_iterator(0); } + const_use_iterator use_end() const { return const_use_iterator(0); } User *use_back() { return *use_begin(); } const User *use_back() const { return *use_begin(); } @@ -172,7 +172,7 @@ public: /// traversing the whole use list. /// bool hasOneUse() const { - use_const_iterator I = use_begin(), E = use_end(); + const_use_iterator I = use_begin(), E = use_end(); if (I == E) return false; return ++I == E; } |