diff --git a/include/llvm/Use.h b/include/llvm/Use.h index e1ebc6a51be..2759338f42a 100644 --- a/include/llvm/Use.h +++ b/include/llvm/Use.h @@ -210,6 +210,30 @@ public: unsigned getOperandNo() const; }; + +template<> struct simplify_type > { + typedef User* SimpleType; + + static SimpleType getSimplifiedValue(const value_use_iterator &Val) { + return *Val; + } +}; + +template<> struct simplify_type > + : public simplify_type > {}; + +template<> struct simplify_type > { + typedef const User* SimpleType; + + static SimpleType getSimplifiedValue(const + value_use_iterator &Val) { + return *Val; + } +}; + +template<> struct simplify_type > + : public simplify_type > {}; + } // End llvm namespace #endif