Skip to content

Commit 0c29ca7

Browse files
committed
[lldb] Account for renamed ScratchTypeSystemClang for swift
1 parent 875aeda commit 0c29ca7

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

lldb/source/Plugins/InstrumentationRuntime/SwiftRuntimeReporting/SwiftRuntimeReporting.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ SwiftRuntimeReporting::RetrieveReportData(ExecutionContextRef exe_ctx_ref) {
219219
return StructuredData::ObjectSP();
220220

221221
// Prepare the argument types: treat all of them as pointers
222-
TypeSystemClang *clang_ast_context = TypeSystemClang::GetScratch(target);
222+
TypeSystemClang *clang_ast_context =
223+
ScratchTypeSystemClang::GetForTarget(target);
223224
ValueList args;
224225
Value input_value;
225226
input_value.SetCompilerType(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ SwiftArrayBridgedBufferHandler::SwiftArrayBridgedBufferHandler(
141141
: SwiftArrayBufferHandler(), m_elem_type(), m_synth_array_sp(),
142142
m_frontend(nullptr) {
143143
TypeSystemClang *clang_ast_context =
144-
TypeSystemClang::GetScratch(process_sp->GetTarget());
144+
ScratchTypeSystemClang::GetForTarget(process_sp->GetTarget());
145145
if (!clang_ast_context)
146146
return;
147147
m_elem_type = clang_ast_context->GetBasicType(
@@ -291,7 +291,7 @@ SwiftArrayBufferHandler::CreateBufferHandler(ValueObject &valobj) {
291291
if (!valobj.GetTargetSP())
292292
return nullptr;
293293
TypeSystemClang *clang_ast_context =
294-
TypeSystemClang::GetScratch(*valobj.GetTargetSP());
294+
ScratchTypeSystemClang::GetForTarget(*valobj.GetTargetSP());
295295
if (!clang_ast_context)
296296
return nullptr;
297297

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ bool lldb_private::formatters::swift::StringGuts_SummaryProvider(
322322

323323
if ((discriminator & 0xE0) == 0x40) { // 010xxxxx: Bridged
324324
TypeSystemClang *clang_ast_context =
325-
TypeSystemClang::GetScratch(process->GetTarget());
325+
ScratchTypeSystemClang::GetForTarget(process->GetTarget());
326326
if (!clang_ast_context)
327327
return false;
328328

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ HashedCollectionConfig::CocoaObjectAtAddress(
325325
if (!process_sp)
326326
return nullptr;
327327
TypeSystemClang *clang_ast_context =
328-
TypeSystemClang::GetScratch(process_sp->GetTarget());
328+
ScratchTypeSystemClang::GetForTarget(process_sp->GetTarget());
329329
if (!clang_ast_context)
330330
return nullptr;
331331
CompilerType id = clang_ast_context->GetBasicType(lldb::eBasicTypeObjCID);

lldb/source/Target/SwiftLanguageRuntime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ void SwiftLanguageRuntime::FindFunctionPointersInCall(
10461046
ABISP abi_sp(frame.GetThread()->GetProcess()->GetABI());
10471047
ValueList argument_values;
10481048
Value input_value;
1049-
auto clang_ctx = TypeSystemClang::GetScratch(target);
1049+
auto clang_ctx = ScratchTypeSystemClang::GetForTarget(target);
10501050
if (!clang_ctx)
10511051
continue;
10521052

lldb/source/Target/SwiftLanguageRuntimeDynamicTypeResolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ const CompilerType &SwiftLanguageRuntimeImpl::GetBoxMetadataType() {
256256
static ConstString g_type_name("__lldb_autogen_boxmetadata");
257257
const bool is_packed = false;
258258
if (TypeSystemClang *ast_ctx =
259-
TypeSystemClang::GetScratch(m_process.GetTarget())) {
259+
ScratchTypeSystemClang::GetForTarget(m_process.GetTarget())) {
260260
CompilerType voidstar =
261261
ast_ctx->GetBasicType(lldb::eBasicTypeVoid).GetPointerType();
262262
CompilerType uint32 = ast_ctx->GetIntTypeFromBitSize(32, false);

0 commit comments

Comments
 (0)