[DWARF5]: Added support for dumping strx forms in llvm-dwarfdump
authorSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Mon, 27 Apr 2020 16:16:11 +0000 (21:46 +0530)
committerSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Tue, 12 May 2020 04:59:18 +0000 (10:29 +0530)
commit93aee9ca8698111b2df2fda2a1a5a2f3ce4fc014
treedcdf97cffe2158719951cb93375f1e181a9967eb
parent013f06703e132c31cf3e8bdb2ae7c6b89b8f8fc2
[DWARF5]: Added support for dumping strx forms in llvm-dwarfdump

This patch adds support for dumping DW_MACRO_define_strx,
DW_MACRO_undef_strx in llvm-dwarfdump. These forms are currently
supported only in debug_macro section.

Reviewed By: ikudrin, dblaikie

Differential Revision: https://reviews.llvm.org/D78736
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugMacro.cpp
llvm/test/DebugInfo/X86/debug-macinfo-strp.s [new file with mode: 0644]
llvm/test/DebugInfo/X86/debug-macinfo-strx.s [new file with mode: 0644]
llvm/test/DebugInfo/X86/debug-macro-empty-macro-offset.s [new file with mode: 0644]
llvm/test/DebugInfo/X86/debug-macro-empty-str-offset.s [new file with mode: 0644]
llvm/test/DebugInfo/X86/debug-macro-multi-cu-strx.s [new file with mode: 0644]