aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-07-23 08:53:17 +0000
committerEric Christopher <echristo@apple.com>2010-07-23 08:53:17 +0000
commit45cbf3e550a0eaee4e4a72e05934fbc0a981bcda (patch)
tree3bee55ca8c40125f9451ce55d30de44559904e0e /include
parent4dfef980039a1bda79ca15c4c7edebb142fc17d1 (diff)
downloadexternal_llvm-45cbf3e550a0eaee4e4a72e05934fbc0a981bcda.zip
external_llvm-45cbf3e550a0eaee4e4a72e05934fbc0a981bcda.tar.gz
external_llvm-45cbf3e550a0eaee4e4a72e05934fbc0a981bcda.tar.bz2
Revert 109220.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Use.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/llvm/Use.h b/include/llvm/Use.h
index e1ebc6a..2759338 100644
--- a/include/llvm/Use.h
+++ b/include/llvm/Use.h
@@ -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