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

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

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.
bolt/lib/Core/DebugData.cpp Outdated Show resolved Hide resolved
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.

bolt/test/X86/Inputs/dwarf5-basic-cu.s Show resolved Hide resolved
bolt/test/X86/dwarf5-type-unit-no-cu-str-offset-table.test Outdated Show resolved Hide resolved
@ayermolo ayermolo merged commit bf2b035 into llvm:main Dec 15, 2023
4 checks passed
@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.

None yet

2 participants