Skip to content

[DebugInfo] Emit linkage name into DWARF for types for Swift #9468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

augusto2112
Copy link

Store Swift mangled names in DW_AT_linkage_name. The Swift compiler emits only the type mangled name in debug information, and LLDB uses those mangled names as keys to look up size, alignment, fields, etc from either reflection metadata or Swift modules.

Additionally, emit types linkage names for types into the accelerator table if they exist and they're different from the display name.

(cherry picked from commit 8234f8a)

…2802)

Store Swift mangled names in DW_AT_linkage_name. The Swift compiler
emits only the type mangled name in debug information, and LLDB uses
those mangled names as keys to look up size, alignment, fields, etc
from either reflection metadata or Swift modules.

Additionally, emit types linkage names for types into the accelerator
table if they exist and they're different from the display name.

(cherry picked from commit 8234f8a)
@augusto2112 augusto2112 changed the title [DebugInfo] Emit linkage name into DWARF for types for Swift (#112802) [DebugInfo] Emit linkage name into DWARF for types for Swift Oct 22, 2024
@augusto2112
Copy link
Author

@swift-ci test

@augusto2112 augusto2112 merged commit 3a9722b into swiftlang:stable/20240723 Oct 23, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant