Revert 109220.
authorEric Christopher <echristo@apple.com>
Fri, 23 Jul 2010 08:53:17 +0000 (08:53 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 23 Jul 2010 08:53:17 +0000 (08:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109221 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Use.h

index e1ebc6a51be5d62eaa72422e79667d7ffdcee7a6..2759338f42aabb2a68d468f383e9766f240cc39f 100644 (file)
@@ -210,6 +210,30 @@ public:
   unsigned getOperandNo() const;
 };
 
+
+template<> struct simplify_type<value_use_iterator<User> > {
+  typedef User* SimpleType;
+  
+  static SimpleType getSimplifiedValue(const value_use_iterator<User> &Val) {
+    return *Val;
+  }
+};
+
+template<> struct simplify_type<const value_use_iterator<User> >
+ : public simplify_type<value_use_iterator<User> > {};
+
+template<> struct simplify_type<value_use_iterator<const User> > {
+  typedef const User* SimpleType;
+  
+  static SimpleType getSimplifiedValue(const 
+                                       value_use_iterator<const User> &Val) {
+    return *Val;
+  }
+};
+
+template<> struct simplify_type<const value_use_iterator<const User> >
+  : public simplify_type<value_use_iterator<const User> > {};
 } // End llvm namespace
 
 #endif