Skip to content

[ObjC] Use relative pointer types for members of objc_method_entry_t #6700

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
May 28, 2025

Conversation

bdash
Copy link
Contributor

@bdash bdash commented Apr 22, 2025

Relative pointer types have been a first class citizen for some time and are rendered correctly without any additional work.

The code was previously relying on the Objective-C workflow to render the rptr_t typedef.

Fixes #6699.

@emesare emesare self-assigned this Apr 22, 2025
@emesare emesare added this to the H milestone Apr 22, 2025
@emesare emesare added File Format: Mach-O Component: Objective-C Workflow Issues related to Objective-C support File Format: SharedCache Issue with the dyld_shared_cache plugin labels Apr 22, 2025
@bdash
Copy link
Contributor Author

bdash commented Apr 22, 2025

I initially started on this change because I had expected it'd make cross references work for functions / variables that these fields point to. Sadly it does not (#6701).

@0cyn 0cyn assigned 0cyn and unassigned emesare Apr 28, 2025
@bdash bdash force-pushed the objc-relative-pointers branch from 33f082a to e838c00 Compare May 7, 2025 13:58
@bdash bdash force-pushed the objc-relative-pointers branch from e838c00 to e100369 Compare May 14, 2025 18:44
@bdash bdash force-pushed the objc-relative-pointers branch 2 times, most recently from 212f228 to de51156 Compare May 22, 2025 23:50
They were previously relying on the Objective-C workflow to render the
`rptr_t` typedef. Relative pointer types are now a first class citizen
and are rendered correctly without any additional work.
@0cyn 0cyn force-pushed the objc-relative-pointers branch from de51156 to cf9a634 Compare May 28, 2025 14:03
@0cyn 0cyn merged commit cf9a634 into Vector35:dev May 28, 2025
1 check passed
@0cyn
Copy link
Member

0cyn commented May 28, 2025

Thank you so much for the PR and for having it rebased! Greatly appreciated!

Merged with cf9a634 and will be available soon in versions after dev 5.1.7517

@bdash bdash deleted the objc-relative-pointers branch May 30, 2025 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Objective-C Workflow Issues related to Objective-C support File Format: Mach-O File Format: SharedCache Issue with the dyld_shared_cache plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use proper relative pointer in objective-c types
3 participants