diff options
author | Chris Lattner <sabre@nondot.org> | 2008-08-22 05:08:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-08-22 05:08:25 +0000 |
commit | 2dba6a1bdb7d78b4d1e5e69b81989816193e6b70 (patch) | |
tree | ec5e62c07a7f8e8d7b108d6e1e2ebb2f77c53197 /lib/CodeGen/RegAllocLocal.cpp | |
parent | 5f0cfa299d16e6d43577317176cab1a463c912da (diff) |
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
Diffstat (limited to 'lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLocal.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp index a660e00aa8..5946e74902 100644 --- a/lib/CodeGen/RegAllocLocal.cpp +++ b/lib/CodeGen/RegAllocLocal.cpp @@ -561,18 +561,6 @@ static bool precedes(MachineBasicBlock::iterator A, return false; } -namespace llvm { - template<> struct DenseMapInfo<uint32_t> { - static inline uint32_t getEmptyKey() { return ~0; } - static inline uint32_t getTombstoneKey() { return ~0 - 1; } - static unsigned getHashValue(const uint32_t& Val) { return Val * 37; } - static bool isPod() { return true; } - static bool isEqual(const uint32_t& LHS, const uint32_t& RHS) { - return LHS == RHS; - } - }; -} - /// ComputeLocalLiveness - Computes liveness of registers within a basic /// block, setting the killed/dead flags as appropriate. void RALocal::ComputeLocalLiveness(MachineBasicBlock& MBB) { |