Skip to content

Commit 2e847d0

Browse files
[lldb][NFC] Delete dead code in SwiftLanguageRuntimeNames
1 parent c964d56 commit 2e847d0

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntimeNames.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -378,17 +378,6 @@ CreateRunThroughTaskSwitchThreadPlan(Thread &thread,
378378
if (!resume_fn_ptr)
379379
return {};
380380

381-
auto arch = reg_ctx->CalculateTarget()->GetArchitecture();
382-
std::optional<AsyncUnwindRegisterNumbers> async_regs =
383-
GetAsyncUnwindRegisterNumbers(arch.GetMachine());
384-
if (!async_regs)
385-
return {};
386-
unsigned async_reg_number = reg_ctx->ConvertRegisterKindToRegisterNumber(
387-
async_regs->GetRegisterKind(), async_regs->async_ctx_regnum);
388-
uint64_t async_ctx = reg_ctx->ReadRegisterAsUnsigned(async_reg_number, 0);
389-
if (!async_ctx)
390-
return {};
391-
392381
return std::make_shared<ThreadPlanRunToAddress>(thread, resume_fn_ptr,
393382
/*stop_others*/ false);
394383
}

0 commit comments

Comments
 (0)