From ee7d86e3ae9e4f83a752aab5369df3c19867f078 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 6 Feb 2015 14:44:02 +0000 Subject: [PATCH] Value: Remove superfluous typedefs and deprecated method. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228400 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/Value.h | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/include/llvm/IR/Value.h b/include/llvm/IR/Value.h index 705fc0f52d5..e01a6c1d096 100644 --- a/include/llvm/IR/Value.h +++ b/include/llvm/IR/Value.h @@ -106,17 +106,12 @@ protected: private: template // UseT == 'Use' or 'const Use' class use_iterator_impl - : public std::iterator { - typedef std::iterator super; - + : public std::iterator { UseT *U; explicit use_iterator_impl(UseT *u) : U(u) {} friend class Value; public: - typedef typename super::reference reference; - typedef typename super::pointer pointer; - use_iterator_impl() : U() {} bool operator==(const use_iterator_impl &x) const { return U == x.U; } @@ -147,17 +142,12 @@ private: template // UserTy == 'User' or 'const User' class user_iterator_impl - : public std::iterator { - typedef std::iterator super; - + : public std::iterator { use_iterator_impl UI; explicit user_iterator_impl(Use *U) : UI(U) {} friend class Value; public: - typedef typename super::reference reference; - typedef typename super::pointer pointer; - user_iterator_impl() {} bool operator==(const user_iterator_impl &x) const { return UI == x.UI; } @@ -188,11 +178,6 @@ private: } Use &getUse() const { return *UI; } - - /// \brief Return the operand # of this use in its User. - /// - /// FIXME: Replace all callers with a direct call to Use::getOperandNo. - unsigned getOperandNo() const { return UI->getOperandNo(); } }; void operator=(const Value &) LLVM_DELETED_FUNCTION; -- 2.34.1