summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-05-23 18:28:13 +0000
committerReid Kleckner <rnk@google.com>2017-05-23 18:28:13 +0000
commit36238b15d7bfccebe8af921fb226cb98dd6024bb (patch)
treec7dfa047946cea5eb6c3345ee4b0c12bc9b0bc0e /llvm/lib
parent74fa80399aaa32d07b65c483e02af1be6e1bc402 (diff)
downloadbcm5719-llvm-36238b15d7bfccebe8af921fb226cb98dd6024bb.tar.gz
bcm5719-llvm-36238b15d7bfccebe8af921fb226cb98dd6024bb.zip
Speculative build fix for non-Windows
llvm-svn: 303667
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/DebugInfo/CodeView/TypeSerializer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/TypeSerializer.cpp b/llvm/lib/DebugInfo/CodeView/TypeSerializer.cpp
index afe70a2e855..c667a73d086 100644
--- a/llvm/lib/DebugInfo/CodeView/TypeSerializer.cpp
+++ b/llvm/lib/DebugInfo/CodeView/TypeSerializer.cpp
@@ -34,6 +34,7 @@ struct HashedTypePtr {
};
} // namespace
+namespace llvm {
template <> struct DenseMapInfo<HashedTypePtr> {
static inline HashedTypePtr getEmptyKey() { return HashedTypePtr(nullptr); }
static inline HashedTypePtr getTombstoneKey() {
@@ -53,6 +54,7 @@ template <> struct DenseMapInfo<HashedTypePtr> {
return ::memcmp(LHS->Data, RHS->Data, LHS->Size) == 0;
}
};
+}
/// Private implementation so that we don't leak our DenseMap instantiations to
/// users.
OpenPOWER on IntegriCloud