summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/DwarfWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-09-17 18:34:04 +0000
committerChris Lattner <sabre@nondot.org>2007-09-17 18:34:04 +0000
commit0625bd6472cde014f76bb91c1a0c925d4b6e0eda (patch)
tree6a7e4763370238242736ff6e67657607afb37b42 /llvm/lib/CodeGen/DwarfWriter.cpp
parent6f0751475a773cbbb3a6aa1b83eaad93f6ab8a09 (diff)
downloadbcm5719-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/DwarfWriter.cpp')
-rw-r--r--llvm/lib/CodeGen/DwarfWriter.cpp1
1 files changed, 1 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; }
};
OpenPOWER on IntegriCloud