MCRegister/Register: DenseMapInfo should take const T &

llvm-svn: 367744
This commit is contained in:
Daniel Sanders 2019-08-03 02:19:23 +00:00
parent 7900905f76
commit 00879c3e87
2 changed files with 4 additions and 4 deletions

View File

@ -123,10 +123,10 @@ template<> struct DenseMapInfo<Register> {
static inline unsigned getTombstoneKey() {
return DenseMapInfo<unsigned>::getTombstoneKey();
}
static unsigned getHashValue(const unsigned &Val) {
static unsigned getHashValue(const Register &Val) {
return DenseMapInfo<unsigned>::getHashValue(Val);
}
static bool isEqual(const unsigned &LHS, const unsigned &RHS) {
static bool isEqual(const Register &LHS, const Register &RHS) {
return DenseMapInfo<unsigned>::isEqual(LHS, RHS);
}
};

View File

@ -73,10 +73,10 @@ template<> struct DenseMapInfo<MCRegister> {
static inline unsigned getTombstoneKey() {
return DenseMapInfo<unsigned>::getTombstoneKey();
}
static unsigned getHashValue(const unsigned &Val) {
static unsigned getHashValue(const MCRegister &Val) {
return DenseMapInfo<unsigned>::getHashValue(Val);
}
static bool isEqual(const unsigned &LHS, const unsigned &RHS) {
static bool isEqual(const MCRegister &LHS, const MCRegister &RHS) {
return DenseMapInfo<unsigned>::isEqual(LHS, RHS);
}
};