mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Move the definition of value_use_iterator::getOperandNo to User.h where the
definition of the User class is available, this fixes the build with some compiler versions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28163 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -112,6 +112,13 @@ template<> struct simplify_type<User::const_op_iterator> {
|
||||
template<> struct simplify_type<const User::const_op_iterator>
|
||||
: public 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
|
||||
|
Reference in New Issue
Block a user