-
Notifications
You must be signed in to change notification settings - Fork 13k
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
debuginfo: Don't emit DW_AT_address_class attribute for pointer type debuginfo. #93070
debuginfo: Don't emit DW_AT_address_class attribute for pointer type debuginfo. #93070
Conversation
r? @jackh726 (rust-highfive has picked a reviewer for you, use r? to override) |
d050d9b
to
76234de
Compare
r? @cuviper, since this involves our LLVM bindings. |
☔ The latest upstream changes (presumably #93006) made this pull request unmergeable. Please resolve the merge conflicts. |
76234de
to
265000d
Compare
This is unblocked now. |
So, you're always emitting The change itself seems fine, but if we're never going to set a real value, we might as well hardcode that
I see a few places in Clang that depend on the result of |
Is there a description of what these address spaces are exactly? Are these the same as |
LLVM describes it in the Data Layout:
The only standardized value in DWARF is The DWARF spec mentions other i386 examples like
I think it is |
Thanks for digging up that information! I'll update the PR to use the value from |
FYI: I plan to do this but it might take a while because it's not high priority. I'm leaving the PR open, so I don't forget. |
☔ The latest upstream changes (presumably #93644) made this pull request unmergeable. Please resolve the merge conflicts. |
265000d
to
fb623bc
Compare
☔ The latest upstream changes (presumably #95291) made this pull request unmergeable. Please resolve the merge conflicts. |
@michaelwoerister @rustbot label: +S-inactive |
Currently the compiler adds the
DW_AT_address_class
attribute to pointer type debuginfo. This seems to be accidental, mostly due to our LLVM bindings not allowing to omit the attribute. This PR changes this and brings the actual behavior in line with the intended behavior (as expressed in the pre-existing comments in metadata.rs).For reference, Clang does not emit the attribute.
Only the final commit is relevant for this PR. The other two commits are from #93006, which should be merged first.