[DWARFv4][DWARFv5][DWARFLinker] support debug_macinfo/debug_macro tables.
authorAlexey Lapshin <a.v.lapshin@mail.ru>
Fri, 23 Sep 2022 06:34:26 +0000 (09:34 +0300)
committerAlexey Lapshin <a.v.lapshin@mail.ru>
Wed, 21 Dec 2022 12:38:41 +0000 (13:38 +0100)
commit11e0500598490e1b661702f54b25f8e124a20a1b
treebb3b1b2e49e10dc7079c7c1fd1f9f34a41a606f1
parentb2638a7a34d97066caa234999055bf580cbab02f
[DWARFv4][DWARFv5][DWARFLinker] support debug_macinfo/debug_macro tables.

This patch adds handling of debug_macinfo/debug_macro tables to the DWARFLinker.
It uses already existing code for reading tables from DWARFDebugMacro.h.
It adds new code writing tables into the DwarfStreamer::emitMacroTables.

Differential Revision: https://reviews.llvm.org/D140223
19 files changed:
llvm/include/llvm/DWARFLinker/DWARFLinker.h
llvm/include/llvm/DWARFLinker/DWARFStreamer.h
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h
llvm/include/llvm/MC/MCStreamer.h
llvm/lib/DWARFLinker/DWARFLinker.cpp
llvm/lib/DWARFLinker/DWARFStreamer.cpp
llvm/lib/MC/MCObjectStreamer.cpp
llvm/lib/MC/MCStreamer.cpp
llvm/test/tools/dsymutil/X86/module-warnings.test
llvm/test/tools/llvm-dwarfutil/ELF/X86/Inputs/dwarf4-macro.out [new file with mode: 0755]
llvm/test/tools/llvm-dwarfutil/ELF/X86/Inputs/dwarf5-macro.out [new file with mode: 0755]
llvm/test/tools/llvm-dwarfutil/ELF/X86/dwarf4-macro-short.test [new file with mode: 0644]
llvm/test/tools/llvm-dwarfutil/ELF/X86/dwarf4-macro-vendor-specific.test [new file with mode: 0644]
llvm/test/tools/llvm-dwarfutil/ELF/X86/dwarf4-macro.test [new file with mode: 0644]
llvm/test/tools/llvm-dwarfutil/ELF/X86/dwarf5-macro-opcodeop.test [new file with mode: 0644]
llvm/test/tools/llvm-dwarfutil/ELF/X86/dwarf5-macro-short.test [new file with mode: 0644]
llvm/test/tools/llvm-dwarfutil/ELF/X86/dwarf5-macro.test [new file with mode: 0644]
llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-macinfo.test [deleted file]
llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-macro.test [deleted file]