File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -147,17 +147,17 @@ class Register {
147
147
148
148
// Provide DenseMapInfo for Register
149
149
template <> struct DenseMapInfo <Register> {
150
- static inline unsigned getEmptyKey () {
150
+ static inline Register getEmptyKey () {
151
151
return DenseMapInfo<unsigned >::getEmptyKey ();
152
152
}
153
- static inline unsigned getTombstoneKey () {
153
+ static inline Register getTombstoneKey () {
154
154
return DenseMapInfo<unsigned >::getTombstoneKey ();
155
155
}
156
156
static unsigned getHashValue (const Register &Val) {
157
157
return DenseMapInfo<unsigned >::getHashValue (Val.id ());
158
158
}
159
159
static bool isEqual (const Register &LHS, const Register &RHS) {
160
- return DenseMapInfo< unsigned >:: isEqual ( LHS. id (), RHS. id ()) ;
160
+ return LHS == RHS;
161
161
}
162
162
};
163
163
Original file line number Diff line number Diff line change @@ -2309,8 +2309,7 @@ template <> struct DenseMapInfo<TargetInstrInfo::RegSubRegPair> {
2309
2309
2310
2310
static bool isEqual (const TargetInstrInfo::RegSubRegPair &LHS,
2311
2311
const TargetInstrInfo::RegSubRegPair &RHS) {
2312
- return RegInfo::isEqual (LHS.Reg , RHS.Reg ) &&
2313
- SubRegInfo::isEqual (LHS.SubReg , RHS.SubReg );
2312
+ return LHS == RHS;
2314
2313
}
2315
2314
};
2316
2315
Original file line number Diff line number Diff line change @@ -106,17 +106,17 @@ class MCRegister {
106
106
107
107
// Provide DenseMapInfo for MCRegister
108
108
template <> struct DenseMapInfo <MCRegister> {
109
- static inline unsigned getEmptyKey () {
109
+ static inline MCRegister getEmptyKey () {
110
110
return DenseMapInfo<unsigned >::getEmptyKey ();
111
111
}
112
- static inline unsigned getTombstoneKey () {
112
+ static inline MCRegister getTombstoneKey () {
113
113
return DenseMapInfo<unsigned >::getTombstoneKey ();
114
114
}
115
115
static unsigned getHashValue (const MCRegister &Val) {
116
116
return DenseMapInfo<unsigned >::getHashValue (Val.id ());
117
117
}
118
118
static bool isEqual (const MCRegister &LHS, const MCRegister &RHS) {
119
- return DenseMapInfo< unsigned >:: isEqual ( LHS. id (), RHS. id ()) ;
119
+ return LHS == RHS;
120
120
}
121
121
};
122
122
You can’t perform that action at this time.
0 commit comments