Skip to content

[Keypaths] Use mangled names to reference types and witness tables in metadata #20499

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
Nov 13, 2018

Conversation

DougGregor
Copy link
Member

In keypath metadata, use mangled names to reference type metadata and witness tables. There are three cases:

  • For non-dependent type metadata, use a mangled type name
  • For dependent type metadata, use a fake symbolic reference mangling to an accessor
  • For witness tables, use a fake symbolic reference mangling to an accessor

This is the main ABI part of rdar://problem/38038799. We'd still like to use real mangling here instead of fake ones with accessors.

@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

@swift-ci please smoke test Linux

1 similar comment
@DougGregor
Copy link
Member Author

@swift-ci please smoke test Linux

@DougGregor DougGregor force-pushed the keypath-metadata-mangling branch from 430f4a8 to e99d937 Compare November 13, 2018 04:10
…ssors.

Switch key path metadata over to mangled names for each of the places it
refers to either a type metadata accessor or a witness table accessor. For
now, the mangled name is a symbolic reference to the existing accessors.

Part of rdar://problem/38038799.
When a type in keypath metadata is non-dependent, use a mangled type name
rather than a symbolic reference to an accessor function.

Part of rdar://problem/38038799.
@DougGregor DougGregor force-pushed the keypath-metadata-mangling branch from e99d937 to 7b8bbcd Compare November 13, 2018 05:15
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 176386c into swiftlang:master Nov 13, 2018
@DougGregor DougGregor deleted the keypath-metadata-mangling branch November 13, 2018 06:25
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