[BOLT][DWARF] Add support for DW_AT_call_pc/DW_AT_call_return_pc
authorAlexander Yermolovich <ayermolo@fb.com>
Fri, 24 Jun 2022 19:37:01 +0000 (12:37 -0700)
committerAlexander Yermolovich <ayermolo@fb.com>
Fri, 24 Jun 2022 19:37:58 +0000 (12:37 -0700)
commit11a8dd65ec604b59b79f64ee4b4874f439085514
tree98d4fe525dda533609e77411cd435f096dca1ee8
parentd343cdd50992ea3137146bebf32e538b73359144
[BOLT][DWARF] Add support for DW_AT_call_pc/DW_AT_call_return_pc

DWARF 5 added two new attributes DW_AT_call_pc and DW_AT_call_return_pc.
Adding support for them.

Reviewed By: maksfb

Differential Revision: https://reviews.llvm.org/D128526
bolt/lib/Rewrite/DWARFRewriter.cpp
bolt/test/X86/Inputs/dwarf5-call-pc-helper.s [new file with mode: 0644]
bolt/test/X86/Inputs/dwarf5-call-pc-main.s [new file with mode: 0644]
bolt/test/X86/Inputs/dwarf5-return-pc-helper.s [new file with mode: 0644]
bolt/test/X86/Inputs/dwarf5-return-pc-main.s [new file with mode: 0644]
bolt/test/X86/dwarf5-call-pc.test [new file with mode: 0644]
bolt/test/X86/dwarf5-return-pc.test [new file with mode: 0644]