OSDN Git Service

[C++11] Sink the iterator over a Value's users into the Value type
authorChandler Carruth <chandlerc@gmail.com>
Wed, 5 Mar 2014 01:50:35 +0000 (01:50 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 5 Mar 2014 01:50:35 +0000 (01:50 +0000)
commitd1fe495464e4abc384565813cbf1cb8b130e5a6d
tree6e1222dc004b8b8d75d99d363c4536a1dc0a59c9
parent8b3fad9343111eec5931492fbd812ad578c71089
[C++11] Sink the iterator over a Value's users into the Value type
itself and teach it to convert between the non-const and const variants.
De-templatetize its usage in APIs to just use the const variant which
always works for those use cases. Also, rename its implementation to
reflect that it is an iterator over *users* not over *uses*.

This is a step toward providing both iterator and range support for
walking the *uses* distinct from the *users*. In a subsequent patch this
will get renamed to make it clear that this is an adaptor over the
fundamental use iterator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202923 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/CallSite.h
include/llvm/IR/Instructions.h
include/llvm/IR/Use.h
include/llvm/IR/Value.h