Skip to content

Commit 8150749

Browse files
[lldb][NFC] Delete dead code in SwiftLanguageRuntimeNames
(cherry picked from commit 2e847d0)
1 parent 3a6b120 commit 8150749

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
@@ -379,17 +379,6 @@ CreateRunThroughTaskSwitchThreadPlan(Thread &thread,
379379
if (!resume_fn_ptr)
380380
return {};
381381

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

0 commit comments

Comments
 (0)