Skip to content

Cherrypick ObjC method mangling commits for Swift #2026

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

Closed
wants to merge 2 commits into from
Closed

Cherrypick ObjC method mangling commits for Swift #2026

wants to merge 2 commits into from

Conversation

ellishg
Copy link

@ellishg ellishg commented Oct 22, 2020

ellishg and others added 2 commits October 22, 2020 15:20
for generating the mangled name of an Objective-C method.

This has no intended functionality change.

https://reviews.llvm.org/D88329
- Fix a memory leak accidentally introduced yesterday by using CodeGen's
  existing mangling context instead of creating a new context afresh.

- Move GNU-runtime ObjC method mangling into the AST mangler; this will
  eventually be necessary to support direct methods there, but is also
  just the right architecture.

- Make the Apple-runtime method mangling work properly when given an
  interface declaration, fixing a bug (which had solidified into a test)
  where mangling a category method from the interface could cause it to
  be mangled as if the category name was a class name.  (Category names
  are namespaced within their class and have no global meaning.)

- Fix a code cross-reference in dsymutil.

Based on a patch by Ellis Hoag.
@rjmccall
Copy link

@swift-ci Please test

@rjmccall
Copy link

Oh, right, this needs to be a cherry-pick into apple/stable/20200714, not directly into swift/main.

@ellishg
Copy link
Author

ellishg commented Oct 22, 2020

Ah ok, moved to #2028

@ellishg ellishg closed this Oct 22, 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.

2 participants