Skip to content

[BOLT][DWARF] Fix handling .debug_str_offsets for type units #75522

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
Dec 15, 2023

Conversation

ayermolo
Copy link
Contributor

There was an assumpiton that TUs and CUs share .debug_str_offsets contribution. For ThinLTO builds it is not the case. Changed so that we parse contributions for TUs also, and did some refactoring so that we don't re-parse contributions that were not modified.

There was an assumpiton that TUs and CUs share .debug_str_offsets contribution.
For ThinLTO builds it is not the case. Changed so that we parse contributions
for TUs also, and did some refactoring so that we don't re-parse contributions
that were not modified.
@ayermolo ayermolo added the BOLT label Dec 14, 2023
@ayermolo ayermolo requested a review from maksfb December 14, 2023 19:56
Comment on lines 863 to 864
assert(DwarfOffsetByteSize == 4 &&
"Dwarf String Offsets Byte Size is not supported.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Unrelated: this should be an error, not an assertion.

@ayermolo ayermolo merged commit bf2b035 into llvm:main Dec 15, 2023
@ayermolo ayermolo deleted the debugStrOffsetsTUFix branch December 15, 2023 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants