mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
consolidate DenseMapInfo implementations, and add one for std::pair.
Patch contributed by m-s. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -55,20 +55,6 @@ namespace llvm {
|
||||
}
|
||||
};
|
||||
|
||||
// Provide DenseMapInfo for unsigned.
|
||||
template<>
|
||||
struct DenseMapInfo<unsigned> {
|
||||
static inline unsigned getEmptyKey() { return (unsigned)-1; }
|
||||
static inline unsigned getTombstoneKey() { return (unsigned)-2; }
|
||||
static unsigned getHashValue(const unsigned Val) {
|
||||
return Val * 37;
|
||||
}
|
||||
static bool isEqual(const unsigned LHS, const unsigned RHS) {
|
||||
return LHS == RHS;
|
||||
}
|
||||
static bool isPod() { return true; }
|
||||
};
|
||||
|
||||
class LiveIntervals : public MachineFunctionPass {
|
||||
MachineFunction* mf_;
|
||||
MachineRegisterInfo* mri_;
|
||||
|
Reference in New Issue
Block a user