Skip to content
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

Use upstream $local symbol instead of $eh_alias #750

Conversation

arichardson
Copy link
Member

This reduces the diff to upstream a bit and slightly simplifies the code.

Will merge this if CI is happy there are no objections by next week.

We are emitting the local function symbol alias in a slightly weird
order, which will be fixed in the following commits.
Match the .L<fn>$local: approach and emit it after the symbol.
There is no need to define our own non-preemptible local symbol since
upstream now has the $local non-preemptible symbol. Since the latest
merge it also includes my upstreamed fixes to always have the right type
and size attributes, so it is safe to use here.
This avoids one dependency on clang and will hopefully allow removing it
entirely soon. Ideally this would be written as an assembly test but
adding the right directives for EH tables is tedious, so I went for
IR instead.
@arichardson arichardson requested a review from jrtc27 September 12, 2024 16:02
@arichardson arichardson merged commit 6205600 into CTSRD-CHERI:upstream-llvm-merge Sep 17, 2024
6 checks passed
@arichardson arichardson deleted the simplify-eh-local-symbol branch September 17, 2024 16:31
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.

1 participant