Skip to content

[NFC] Reduce some duplication in IRGen code for method descriptors. #28475

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
Dec 5, 2019
Merged

[NFC] Reduce some duplication in IRGen code for method descriptors. #28475

merged 1 commit into from
Dec 5, 2019

Conversation

varungandhi-apple
Copy link
Contributor

It seems a bit tedious (and a tad confusing) to create pointers and pass them by reference. It should be ok if we return a 4-word struct instead.

I'm somewhat dissatisfied with one of the struct names ObjCMethodRep, but I don't have any bright ideas. Suggestions welcome. There is already a class irgen::ObjCMethod so I can't name it that.

@varungandhi-apple

This comment has been minimized.

@swift-ci

This comment has been minimized.

@varungandhi-apple

This comment has been minimized.

@swift-ci

This comment has been minimized.

@swift-ci

This comment has been minimized.

@varungandhi-apple

This comment has been minimized.

Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good, just some style feedback.

@varungandhi-apple
Copy link
Contributor Author

@swift-ci please test

@swift-ci

This comment has been minimized.

@swift-ci

This comment has been minimized.

@varungandhi-apple
Copy link
Contributor Author

@swift-ci please test macOS platform

@varungandhi-apple
Copy link
Contributor Author

Test failure was due to another issue. Fix is in #28542.

@swift-ci

This comment has been minimized.

@varungandhi-apple
Copy link
Contributor Author

@swift-ci please test macOS platform

Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@varungandhi-apple varungandhi-apple merged commit 13b0fa9 into swiftlang:master Dec 5, 2019
@varungandhi-apple varungandhi-apple deleted the vg-irgen-housekeeping branch December 5, 2019 00:33
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