[BOLT][DWARF] Fix how DW_AT_high_pc [DW_FORM_udata] is handled
authorAlexander Yermolovich <ayermolo@fb.com>
Fri, 25 Feb 2022 18:31:22 +0000 (10:31 -0800)
committerAlexander Yermolovich <ayermolo@fb.com>
Fri, 25 Feb 2022 18:32:05 +0000 (10:32 -0800)
commita44fe31977c781b58922e6ad065c15920883dc57
tree0f22330988ca1f61755ef55be83c6d8649b062de
parentcb76c4d71c41bbbae47852d7980e74b57c5a28df
[BOLT][DWARF] Fix how DW_AT_high_pc [DW_FORM_udata] is handled

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.

Reviewed By: maksfb

Differential Revision: https://reviews.llvm.org/D120528
bolt/include/bolt/Core/DebugData.h
bolt/lib/Core/DebugData.cpp
bolt/test/X86/high_pc_udata.s [new file with mode: 0644]