diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-09-17 18:34:04 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-09-17 18:34:04 +0000 |
| commit | 0625bd6472cde014f76bb91c1a0c925d4b6e0eda (patch) | |
| tree | 6a7e4763370238242736ff6e67657607afb37b42 /llvm/lib/CodeGen | |
| parent | 6f0751475a773cbbb3a6aa1b83eaad93f6ab8a09 (diff) | |
| download | bcm5719-llvm-0625bd6472cde014f76bb91c1a0c925d4b6e0eda.tar.gz bcm5719-llvm-0625bd6472cde014f76bb91c1a0c925d4b6e0eda.zip | |
Merge DenseMapKeyInfo & DenseMapValueInfo into DenseMapInfo
Add a new DenseMapInfo::isEqual method to allow clients to redefine
the equality predicate used when probing the hash table.
llvm-svn: 42042
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/DwarfWriter.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocBigBlock.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp index cf6a922d23c..10f7c991840 100644 --- a/llvm/lib/CodeGen/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/DwarfWriter.cpp @@ -2942,6 +2942,7 @@ private: static inline unsigned getEmptyKey() { return -1U; } static inline unsigned getTombstoneKey() { return -2U; } static unsigned getHashValue(const unsigned &Key) { return Key; } + static bool isEqual(unsigned LHS, unsigned RHS) { return LHS == RHS; } static bool isPod() { return true; } }; diff --git a/llvm/lib/CodeGen/RegAllocBigBlock.cpp b/llvm/lib/CodeGen/RegAllocBigBlock.cpp index c7f23f51d4b..7f402a62b81 100644 --- a/llvm/lib/CodeGen/RegAllocBigBlock.cpp +++ b/llvm/lib/CodeGen/RegAllocBigBlock.cpp @@ -63,6 +63,7 @@ namespace { struct VRegKeyInfo { static inline unsigned getEmptyKey() { return -1U; } static inline unsigned getTombstoneKey() { return -2U; } + static bool isEqual(unsigned LHS, unsigned RHS) { return LHS == RHS; } static unsigned getHashValue(const unsigned &Key) { return Key; } }; |

