This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][DWARF] Fix how DW_AT_high_pc [DW_FORM_udata] is handled
ClosedPublic

Authored by ayermolo on Feb 24 2022, 5:11 PM.

Details

Summary

We were not handling correctly conversion from DW_AT_high_pc into DW_AT_ranges,
when size of DW_AT_high_pc is not 4/8 bytes.

Diff Detail

Event Timeline

ayermolo created this revision.Feb 24 2022, 5:11 PM
ayermolo requested review of this revision.Feb 24 2022, 5:11 PM
Herald added a project: Restricted Project. · View Herald Transcript
ayermolo updated this revision to Diff 411278.Feb 24 2022, 5:28 PM

small fix

maksfb added inline comments.Feb 24 2022, 6:01 PM
bolt/include/bolt/Core/DebugData.h
540

Could you add a description of the patch kind in a comment?

546

I don't see the need to redefine getKind().

ayermolo updated this revision to Diff 411298.Feb 24 2022, 8:16 PM

address comments

ayermolo marked 2 inline comments as done.Feb 24 2022, 8:17 PM
maksfb accepted this revision.Feb 25 2022, 7:52 AM

nit: drop the trailing period from the title.

This revision is now accepted and ready to land.Feb 25 2022, 7:52 AM
ayermolo retitled this revision from [BOLT][DWARF] Fix how DW_AT_high_pc [DW_FORM_udata] is handled. to [BOLT][DWARF] Fix how DW_AT_high_pc [DW_FORM_udata] is handled.Feb 25 2022, 10:26 AM