[DWARF5] Added support for .debug_macro.dwo section in llvm-dwarfdump
authorSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Fri, 29 May 2020 18:27:35 +0000 (23:57 +0530)
committerSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Fri, 29 May 2020 18:42:50 +0000 (00:12 +0530)
commite7102eed20d969c7e75b7d3dc5192290f733797a
treed97aab632833715d46a4f2f4bf2433b43832e943
parentd2befc66336d4d4c014be11d40e8ed6d3140fd36
[DWARF5] Added support for .debug_macro.dwo section in llvm-dwarfdump

This patch extends the parsing and dumping support of llvm-dwarfdump
for debug_macro.dwo section.

Following forms are supported:

 - DW_MACRO_define
 - DW_MACRO_undef
 - DW_MACRO_start_file
 - DW_MACRO_end_file
 - DW_MACRO_define_strx
 - DW_MACRO_undef_strx
 - DW_MACRO_define_strp
 - DW_MACRO_undef_strp

Reviewed by: ikudrin, dblaikie

Differential Revision: https://reviews.llvm.org/D78500
llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
llvm/include/llvm/DebugInfo/DWARF/DWARFObject.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/test/DebugInfo/X86/debug-macro-strp-dwo.s [new file with mode: 0644]
llvm/test/DebugInfo/X86/debug-macro-strx-dwo.s [new file with mode: 0644]