[BOLT][DWARF] Change loclist encoding to use base_addrx
authorAlexander Yermolovich <ayermolo@meta.com>
Fri, 20 Jan 2023 19:30:04 +0000 (11:30 -0800)
committerAlexander Yermolovich <ayermolo@fb.com>
Fri, 20 Jan 2023 19:30:34 +0000 (11:30 -0800)
commit124ca880aaf8513ce0e93696aa7bb26e237da872
tree1a7f26bcfdb4d5fff09c5da270f142d866adf379
parentcb29ba9c0f8726d768caff29f7c400c19774cbd8
[BOLT][DWARF] Change loclist encoding to use base_addrx

Doing the same thing as for rangelists. Changing loclists to use base_addrx, it
slightly increases .debug_loclists, but reduces .debug_addr section.

| section             | clang-16.bolt.base | clang-16.bolt | raw       |  % |
| debug_loclists |  198208                  |  203398          | 5190     | 102%  |
| .debug_addr    | 14415808              | 14351448        | -64360 |99.5% |

Reviewed By: maksfb

Differential Revision: https://reviews.llvm.org/D141969
bolt/lib/Core/DebugData.cpp
bolt/test/X86/dwarf5-debug-loclists.s
bolt/test/X86/dwarf5-df-dualcu-loclist.test
bolt/test/X86/dwarf5-dwarf4-monolithic.test
bolt/test/X86/dwarf5-loclist-offset-form.test
bolt/test/X86/dwarf5-split-dwarf4-monolithic.test
bolt/test/X86/dwarf5-two-loclists.test
bolt/test/X86/dwarf5-two-rnglists.test