From 65762b549480e130976fdae94fa28a78ab8b249e Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Sun, 16 Jan 2011 08:23:16 +0000 Subject: [PATCH] Remove unnecessary specialization OperandTraits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123577 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/User.h | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/include/llvm/User.h b/include/llvm/User.h index db89b862c4b..74ebffa93cf 100644 --- a/include/llvm/User.h +++ b/include/llvm/User.h @@ -29,16 +29,6 @@ namespace llvm { template struct OperandTraits; -class User; - -/// OperandTraits - specialization to User -template <> -struct OperandTraits { - 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::op_begin(User *U) { - return U->op_begin(); -} - -inline Use *OperandTraits::op_end(User *U) { - return U->op_end(); -} - -inline unsigned OperandTraits::operands(const User *U) { - return U->getNumOperands(); -} - template<> struct simplify_type { typedef Value* SimpleType; -- 2.34.1