File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -71,4 +71,27 @@ void simple_display(llvm::raw_ostream &out,
71
71
72
72
} // end namespace swift
73
73
74
+ namespace llvm {
75
+ template <typename T, typename Enable>
76
+ struct DenseMapInfo ;
77
+ template <>
78
+ struct DenseMapInfo <swift::KnownProtocolKind> {
79
+ using KnownProtocolKind = swift::KnownProtocolKind;
80
+ using Impl = DenseMapInfo<uint8_t >;
81
+ static inline KnownProtocolKind getEmptyKey () {
82
+ return (KnownProtocolKind)Impl::getEmptyKey ();
83
+ }
84
+ static inline KnownProtocolKind getTombstoneKey () {
85
+ return (KnownProtocolKind)Impl::getTombstoneKey ();
86
+ }
87
+ static unsigned getHashValue (const KnownProtocolKind &Val) {
88
+ return Impl::getHashValue ((uint8_t )Val);
89
+ }
90
+ static bool isEqual (const KnownProtocolKind &LHS,
91
+ const KnownProtocolKind &RHS) {
92
+ return LHS == RHS;
93
+ }
94
+ };
95
+ } // namespace llvm
96
+
74
97
#endif
You can’t perform that action at this time.
0 commit comments