mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-27 11:55:49 +00:00
MCRegister/Register: DenseMapInfo should take const T &
llvm-svn: 367744
This commit is contained in:
parent
7900905f76
commit
00879c3e87
@ -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);
|
||||
}
|
||||
};
|
||||
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user