From 56420d5ea6092c901578d07aa00daafc97e84807 Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Sat, 3 Aug 2019 02:19:23 +0000 Subject: [PATCH] MCRegister/Register: DenseMapInfo should take `const T &` git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367744 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/Register.h | 4 ++-- include/llvm/MC/MCRegister.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/llvm/CodeGen/Register.h b/include/llvm/CodeGen/Register.h index cc93bc2978b..640bd82bde2 100644 --- a/include/llvm/CodeGen/Register.h +++ b/include/llvm/CodeGen/Register.h @@ -123,10 +123,10 @@ template<> struct DenseMapInfo { static inline unsigned getTombstoneKey() { return DenseMapInfo::getTombstoneKey(); } - static unsigned getHashValue(const unsigned &Val) { + static unsigned getHashValue(const Register &Val) { return DenseMapInfo::getHashValue(Val); } - static bool isEqual(const unsigned &LHS, const unsigned &RHS) { + static bool isEqual(const Register &LHS, const Register &RHS) { return DenseMapInfo::isEqual(LHS, RHS); } }; diff --git a/include/llvm/MC/MCRegister.h b/include/llvm/MC/MCRegister.h index 99033aaaf8e..0e889c7adf7 100644 --- a/include/llvm/MC/MCRegister.h +++ b/include/llvm/MC/MCRegister.h @@ -73,10 +73,10 @@ template<> struct DenseMapInfo { static inline unsigned getTombstoneKey() { return DenseMapInfo::getTombstoneKey(); } - static unsigned getHashValue(const unsigned &Val) { + static unsigned getHashValue(const MCRegister &Val) { return DenseMapInfo::getHashValue(Val); } - static bool isEqual(const unsigned &LHS, const unsigned &RHS) { + static bool isEqual(const MCRegister &LHS, const MCRegister &RHS) { return DenseMapInfo::isEqual(LHS, RHS); } }; -- 2.40.0