mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Remove unnecessary specialization OperandTraits<User>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123577 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bdbe342e86
commit
65762b5494
@ -29,16 +29,6 @@ namespace llvm {
|
||||
template <class>
|
||||
struct OperandTraits;
|
||||
|
||||
class User;
|
||||
|
||||
/// OperandTraits<User> - specialization to User
|
||||
template <>
|
||||
struct OperandTraits<User> {
|
||||
static inline Use *op_begin(User*);
|
||||
static inline Use *op_end(User*);
|
||||
static inline unsigned operands(const User*);
|
||||
};
|
||||
|
||||
class User : public Value {
|
||||
User(const User &); // Do not implement
|
||||
void *operator new(size_t); // Do not implement
|
||||
@ -152,18 +142,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
inline Use *OperandTraits<User>::op_begin(User *U) {
|
||||
return U->op_begin();
|
||||
}
|
||||
|
||||
inline Use *OperandTraits<User>::op_end(User *U) {
|
||||
return U->op_end();
|
||||
}
|
||||
|
||||
inline unsigned OperandTraits<User>::operands(const User *U) {
|
||||
return U->getNumOperands();
|
||||
}
|
||||
|
||||
template<> struct simplify_type<User::op_iterator> {
|
||||
typedef Value* SimpleType;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user