Skip to content

IRGen: Generate runtime type manglings using ObjC runtime names. #30250

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
Mar 6, 2020

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Mar 5, 2020

In order for the runtime demangler to be able to find ObjC classes and protocols, it needs to
have the runtime name of the declaration be in the mangled name. Only do this for runtime manglings,
to minimize the potential ABI impact for symbol names that already have the source-level names of
ObjC entities baked in. Fixes SR-12169 | rdar://59306590.

@jckarter jckarter requested a review from DougGregor March 5, 2020 22:11
@jckarter
Copy link
Contributor Author

jckarter commented Mar 5, 2020

@swift-ci Please test

@jckarter
Copy link
Contributor Author

jckarter commented Mar 5, 2020

@swift-ci Please test source compatibility

@swift-ci
Copy link
Contributor

swift-ci commented Mar 5, 2020

Build failed
Swift Test Linux Platform
Git Sha - 070f464d565f8d4c3991658d4153c8a9a443cb4a

Copy link
Member

@DougGregor DougGregor 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, thank you for doing this!

In order for the runtime demangler to be able to find ObjC classes and protocols, it needs to
have the runtime name of the declaration be in the mangled name. Only do this for runtime manglings,
to minimize the potential ABI impact for symbol names that already have the source-level names of
ObjC entities baked in. Fixes SR-12169 | rdar://59306590.
@jckarter jckarter force-pushed the mangle-objc-runtime-names branch from 070f464 to fe11864 Compare March 6, 2020 00:55
@jckarter
Copy link
Contributor Author

jckarter commented Mar 6, 2020

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Mar 6, 2020

Build failed
Swift Test Linux Platform
Git Sha - 070f464d565f8d4c3991658d4153c8a9a443cb4a

@swift-ci
Copy link
Contributor

swift-ci commented Mar 6, 2020

Build failed
Swift Test OS X Platform
Git Sha - 070f464d565f8d4c3991658d4153c8a9a443cb4a

@jckarter jckarter merged commit 58950a5 into swiftlang:master Mar 6, 2020
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