@@ -125,13 +125,7 @@ class KeyDataRef {
125
125
};
126
126
127
127
template <class Impl >
128
- struct CacheEntryHeader {
129
- // / LLDB walks this list.
130
- // / FIXME: when LLDB stops walking this list, there will stop being
131
- // / any reason to store argument data in cache entries, and a *ton*
132
- // / of weird stuff here will go away.
133
- const Impl *Next;
134
- };
128
+ struct CacheEntryHeader {};
135
129
136
130
// / A CRTP class for defining entries in a metadata cache.
137
131
template <class Impl , class Header = CacheEntryHeader<Impl> >
@@ -272,11 +266,6 @@ template <class ValueTy> class MetadataCache {
272
266
static_assert (sizeof (Map) == 2 * sizeof (void *),
273
267
" offset of Head is not at proper offset" );
274
268
275
- // / The head of a linked list connecting all the metadata cache entries.
276
- // / TODO: Remove this when LLDB is able to understand the final data
277
- // / structure for the metadata cache.
278
- const ValueTy *Head;
279
-
280
269
struct ConcurrencyControl {
281
270
Mutex Lock;
282
271
ConditionVariable Queue;
@@ -362,10 +351,6 @@ template <class ValueTy> class MetadataCache {
362
351
// creating the metadata.
363
352
auto value = builder ();
364
353
365
- // Update the linked list.
366
- value->Next = Head;
367
- Head = value;
368
-
369
354
#if SWIFT_DEBUG_RUNTIME
370
355
printf (" %s(%p): created %p\n " ,
371
356
ValueTy::getName (), (void *) this , value);
0 commit comments