[cleanup] Add a getOperandNo method to the Use class and implement it
authorChandler Carruth <chandlerc@gmail.com>
Tue, 4 Mar 2014 09:19:43 +0000 (09:19 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 4 Mar 2014 09:19:43 +0000 (09:19 +0000)
commit13f0d301e80d5bb43924d049ac7a3f853df20394
tree0acfb9476461e687451dd2f6c447ffcd459d39d7
parent775581c4181c7f5ef36258788ae19d6346d3f0ec
[cleanup] Add a getOperandNo method to the Use class and implement it
out-of-line so that it can refer to the methods on User. As
a consequence, this removes the need to define one template method if
value_use_iterator in the extremely strange User.h header (!!!).

This makse Use.h slightly less peculiar. The only remaining real
peculiarity is the definition of Use::set in Value.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202805 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Use.h
include/llvm/IR/User.h
lib/IR/Use.cpp