Skip to content

[lldb] Resolve typealias information for assiciated types via reflection #9768

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 2 commits into from
Dec 19, 2024

Conversation

adrian-prantl
Copy link

In this testcase there is an associated type for which no debug info
is generated, since there is neither function nor a variable holding
on to it. However, the associated type information is stored in the
Witness Table, which we can query in the runtime.

rdar://140940434

@adrian-prantl
Copy link
Author

@swift-ci test

Copy link

@augusto2112 augusto2112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. We should measure the performance and maybe come up with a better API on TypeRefBuilder to query conformances, since parsing all of them could be very expensive.

if (!reflection_ctx)
return {};

Progress progress("Downloading Swift conformances");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "parsing" instead of "downloading"?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, or "Loading"

if (!reflection_ctx)
return {};

Progress progress("Downloading Swift conformances");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, or "Loading"

@adrian-prantl adrian-prantl force-pushed the 140940434 branch 2 times, most recently from 7c3ac2f to 3199d3e Compare December 19, 2024 16:33
In this testcase there is an associated type for which no debug info
is generated, since there is neither function nor a variable holding
on to it. However, the associated type information is stored in the
Witness Table, which we can query in the runtime.

rdar://140940434
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 07ae73d into swiftlang:swift/release/6.1 Dec 19, 2024
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.

3 participants