Skip to content

[5.0] Improve RemoteAST support for private types in LLDB #22136

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

Conversation

DougGregor
Copy link
Member

Under -g, start emitting mangled names into anonymous context descriptors.
When an anonymous context descriptor provides a mangled name, use that
mangled name to provide the private declaration name for its child context.
This allows us to resolve private type names correctly when the corresponding
anonymous context has its mangled name.

Fixes rdar://problem/38231646.

When -enable-anonymous-context-mangled-names is provided, emit mangled
names as part of the metadata of an anonymous context. This will allow
us to match textual mangled names to the metadata.

This is a backward-compatible ABI extension. Part of rdar://problem/38231646/.

(cherry picked from commit 0c88b88)
Including the mangled names in anonymous context metadata can bloat
code size, and is not needed for normal runtime resolution. However,
it aids debugging, so have -g implies the emission of this extra
metadata, which is always optional.

(cherry picked from commit 580c992)
…te types.

When an anonymous context descriptor provides a mangled name, use that
mangled name to provide the private declaration name for its child context.
This allows us to resolve private type names correctly when the corresponding
anonymous context has its mangled name.

Fixes rdar://problem/38231646.

(cherry picked from commit 61d14ed)
@DougGregor DougGregor requested a review from a team as a code owner January 25, 2019 23:47
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit 696330e into swiftlang:swift-5.0-branch Jan 26, 2019
@DougGregor DougGregor deleted the remote-ast-private-types-5.0 branch January 26, 2019 04:22
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.

2 participants