[llvm-commits] [llvm] r109221 - /llvm/trunk/include/llvm/Use.h
Eric Christopher
echristo at apple.com
Fri Jul 23 01:53:17 PDT 2010
Author: echristo
Date: Fri Jul 23 03:53:17 2010
New Revision: 109221
URL: http://llvm.org/viewvc/llvm-project?rev=109221&view=rev
Log:
Revert 109220.
Modified:
llvm/trunk/include/llvm/Use.h
Modified: llvm/trunk/include/llvm/Use.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Use.h?rev=109221&r1=109220&r2=109221&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Use.h (original)
+++ llvm/trunk/include/llvm/Use.h Fri Jul 23 03:53:17 2010
@@ -210,6 +210,30 @@
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
More information about the llvm-commits
mailing list