projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[cleanup] Add a getOperandNo method to the Use class and implement it
[oota-llvm.git]
/
include
/
llvm
/
IR
/
User.h
diff --git
a/include/llvm/IR/User.h
b/include/llvm/IR/User.h
index 4f8d1b35df96faa2c33881492f196142e5e4bbc4..d288e1908c2f6581d204eedf0f6bd1fe03a19a96 100644
(file)
--- a/
include/llvm/IR/User.h
+++ b/
include/llvm/IR/User.h
@@
-206,12
+206,6
@@
template<> struct simplify_type<User::const_op_iterator> {
}
};
-// value_use_iterator::getOperandNo - Requires the definition of the User class.
-template<typename UserTy>
-unsigned value_use_iterator<UserTy>::getOperandNo() const {
- return U - U->getUser()->op_begin();
-}
-
} // End llvm namespace
#endif