Skip to content

[NFC] Move selector family logic to ObjCSelector #22605

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 3 commits into from
Feb 16, 2019

Conversation

beccadax
Copy link
Contributor

@beccadax beccadax commented Feb 14, 2019

SILFunctionType has some logic which examines a selector and decides if it belongs to one of Objective-C’s special “method families”, like -alloc* and -copy*, which need to return a retained object instead of an autoreleased one. This change extracts most of that logic into SwiftAST as ObjCSelector::getSelectorFamily(), while leaving details specific to SIL’s use of it behind.

SILFunctionType has some logic which examines a selector and decides if it belongs to one of Objective-C’s special “method families”, like -alloc* and -copy*, which need to return a retained pointer instead of an autoreleased one. This change extracts most of that logic into SwiftAST as ObjCSelector::getSelectorFamily(), while leaving details specific to SIL’s use of it behind.
@beccadax beccadax requested a review from gottesmm February 14, 2019 02:46
@beccadax
Copy link
Contributor Author

@swift-ci please smoke test

@beccadax
Copy link
Contributor Author

@swift-ci please test

@swift-ci

This comment has been minimized.

@swift-ci

This comment has been minimized.

@gottesmm
Copy link
Contributor

+1! LGTM!

@beccadax
Copy link
Contributor Author

@swift-ci please test macOS platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 0d11ea0

@beccadax
Copy link
Contributor Author

Joe force-merged a fix for those test failures in #22650. Once more with feeling!

@beccadax
Copy link
Contributor Author

@swift-ci please test and merge

1 similar comment
@beccadax
Copy link
Contributor Author

@swift-ci please test and merge

@swift-ci swift-ci merged commit 57924c2 into swiftlang:master Feb 16, 2019
@beccadax beccadax deleted the all-in-the-family branch February 16, 2019 03:08
beccadax pushed a commit to beccadax/swift that referenced this pull request Mar 1, 2019
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