llvm.org GIT mirror llvm / f0afa50
Don't require the user to do something like isa<foo>(II->get()). The ->get should be implicit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6395 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 20 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
7272 }
7373 };
7474
75 template<> struct simplify_type {
76 typedef Value* SimpleType;
77
78 static SimpleType getSimplifiedValue(const User::op_iterator &Val) {
79 return (SimpleType)Val->get();
80 }
81 };
82 template<> struct simplify_type
83 : public simplify_type {};
84
85 template<> struct simplify_type {
86 typedef Value* SimpleType;
87
88 static SimpleType getSimplifiedValue(const User::const_op_iterator &Val) {
89 return (SimpleType)Val->get();
90 }
91 };
92 template<> struct simplify_type
93 : public simplify_type {};
94
7595 #endif