File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed
lldb/source/Plugins/LanguageRuntime/Swift Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -2522,20 +2522,7 @@ void SwiftLanguageRuntime::DidFinishExecutingUserExpression(
2522
2522
2523
2523
bool SwiftLanguageRuntime::IsABIStable () { FORWARD (IsABIStable); }
2524
2524
2525
- namespace {
2526
- // / The target specific register numbers used for async unwinding.
2527
- // /
2528
- // / For UnwindPlans, these use eh_frame / dwarf register numbering.
2529
- struct AsyncUnwindRegisterNumbers {
2530
- uint32_t async_ctx_regnum;
2531
- uint32_t fp_regnum;
2532
- uint32_t pc_regnum;
2533
-
2534
- RegisterKind GetRegisterKind () const { return lldb::eRegisterKindDWARF; }
2535
- };
2536
- } // namespace
2537
-
2538
- static std::optional<AsyncUnwindRegisterNumbers>
2525
+ std::optional<AsyncUnwindRegisterNumbers>
2539
2526
GetAsyncUnwindRegisterNumbers (llvm::Triple::ArchType triple) {
2540
2527
switch (triple) {
2541
2528
case llvm::Triple::x86_64: {
Original file line number Diff line number Diff line change @@ -517,6 +517,21 @@ class SwiftLanguageRuntime : public LanguageRuntime {
517
517
unsigned num_indirections = 0 );
518
518
};
519
519
520
+ // / The target specific register numbers used for async unwinding.
521
+ // /
522
+ // / For UnwindPlans, these use eh_frame / dwarf register numbering.
523
+ struct AsyncUnwindRegisterNumbers {
524
+ uint32_t async_ctx_regnum;
525
+ uint32_t fp_regnum;
526
+ uint32_t pc_regnum;
527
+
528
+ // / All register numbers in this struct are given in the eRegisterKindDWARF
529
+ // / domain.
530
+ lldb::RegisterKind GetRegisterKind () const { return lldb::eRegisterKindDWARF; }
531
+ };
532
+
533
+ std::optional<AsyncUnwindRegisterNumbers>
534
+ GetAsyncUnwindRegisterNumbers (llvm::Triple::ArchType triple);
520
535
} // namespace lldb_private
521
536
522
537
#endif // liblldb_SwiftLanguageRuntime_h_
You can’t perform that action at this time.
0 commit comments