[DWARF][BOLT] Fix handling of converting range accesss from ofset to index.
authorAlexander Yermolovich <ayermolo@fb.com>
Fri, 19 Aug 2022 22:27:55 +0000 (15:27 -0700)
committerAlexander Yermolovich <ayermolo@fb.com>
Fri, 19 Aug 2022 22:28:12 +0000 (15:28 -0700)
commit928c2ba179665bb37dd6a800ea4c4427ad834ace
treeb62ab4feb6f543e6d7285305ca42761ed690e696
parentcc0b5ebf7fc8beb8fa907730e2d8f52d4c31bdc7
[DWARF][BOLT] Fix handling of converting range accesss from ofset to index.

Wasn't handling correctly creating DW_AT_rnglists_base in UnitDie when
converting access pattern for DW_AT_ranges from offset to index for DWARF5.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D132087
bolt/lib/Rewrite/DWARFRewriter.cpp
bolt/test/X86/dwarf5-rangeoffset-to-rangeindex.s