aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/libclang/LibclangTest.cpp
diff options
context:
space:
mode:
authorAlexey Lapshin <a.v.lapshin@mail.ru>2023-02-27 17:59:30 +0100
committerAlexey Lapshin <a.v.lapshin@mail.ru>2023-03-15 11:36:59 +0100
commit536f35ea62c62d9b28444b33d173d5f556945c90 (patch)
tree8f50d090ac7295bfd72b57bcca651bffbd5f569f /clang/unittests/libclang/LibclangTest.cpp
parent9e8bac7480640677e04f4b9f98c41cb94f8180e2 (diff)
downloadllvm-536f35ea62c62d9b28444b33d173d5f556945c90.zip
llvm-536f35ea62c62d9b28444b33d173d5f556945c90.tar.gz
llvm-536f35ea62c62d9b28444b33d173d5f556945c90.tar.bz2
[DWARFLinker][DWARFv5] Support debug_loclists.
This patch adds support of DWARFv5 .debug_loclists table. As DWARFLinker resolves relocations, it is able to always use DW_FORM_addr instead of DW_FORM_addrx. DW_FORM_addrx helps to minimize number of relocations, it is also used for split DWARF. Both of these cases are not relevant for the DWARFLinker. Thus, this patch converts all DW_FORM_addrx forms into the DW_FORM_addr. And, as the result, it converts location lists of DW_FORM_loclistx form into the DW_FORM_sec_offset. For the --update case all DW_FORM_addrx, DW_FORM_loclistx are preserved as is. Depends On D145499 Differential Revision: https://reviews.llvm.org/D145680
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
0 files changed, 0 insertions, 0 deletions