[DWARF5]: Added support for DW_MACRO_import form in llvm-dwarfdump
authorSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Sun, 12 Apr 2020 20:05:05 +0000 (01:35 +0530)
committerSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Tue, 14 Apr 2020 18:21:46 +0000 (23:51 +0530)
commit85b49ecb78f1de685e553d00aa3c661e4505afc0
tree270647c14f9826ca345c863963e80bc74295e29e
parent161fc1d9118f4f64887cf7845a51ec79f1a8602f
[DWARF5]: Added support for DW_MACRO_import form in llvm-dwarfdump

GCC emits this new form along with others forms(supported in llvm-dwardump)
and since it's support was missing in llvm-dwarfdump, it was not
able to correctly dump the content a debug_macro section for GCC
generated binaries.

This patch extends llvm-dwarfdump to support this form,
now GCC generated debug_macro section can be correctly dumped
using llvm-dwarfdump.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D78006
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h
llvm/lib/DebugInfo/DWARF/DWARFDebugMacro.cpp
llvm/test/DebugInfo/X86/debug-macro-v5.s