Skip to content

Commit acc147c

Browse files
Merge pull request #4065 from adrian-prantl/88509698
Remove SwiftASTContext from HashedCollectionConfig::StorageObjectAtAddress()
2 parents ff38851 + 326d9f0 commit acc147c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

lldb/source/Plugins/Language/Swift/SwiftDictionary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ DictionaryConfig::DictionaryConfig()
4545
// still used to name classes in the ObjC runtime.
4646

4747
m_nativeStorageRoot_mangled =
48-
ConstString("_TtCs22__RawDictionaryStorage");
48+
ConstString("$ss22__RawDictionaryStorageCD");
4949
m_nativeStorageRoot_demangled =
5050
ConstString("Swift.__RawDictionaryStorage");
5151

lldb/source/Plugins/Language/Swift/SwiftHashedContainer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,8 @@ HashedCollectionConfig::StorageObjectAtAddress(
303303
auto scratch_ctx = reader->get();
304304
if (!scratch_ctx)
305305
return nullptr;
306-
SwiftASTContext *ast_ctx = scratch_ctx->GetSwiftASTContext();
307-
308306
CompilerType rawStorage_type =
309-
ast_ctx->GetTypeFromMangledTypename(m_nativeStorageRoot_mangled);
307+
scratch_ctx->GetTypeFromMangledTypename(m_nativeStorageRoot_mangled);
310308
if (!rawStorage_type.IsValid())
311309
return nullptr;
312310

lldb/source/Plugins/Language/Swift/SwiftSet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ SetConfig::SetConfig()
4646
// still used to name classes in the ObjC runtime.
4747

4848
m_nativeStorageRoot_mangled =
49-
ConstString("_TtCs15__RawSetStorage");
49+
ConstString("$ss15__RawSetStorageCD");
5050
m_nativeStorageRoot_demangled =
5151
ConstString("Swift.__RawSetStorage");
5252

0 commit comments

Comments
 (0)