[PATCH] D78006: [DWARF5] Added support for DW_MACRO_import form in llvm-dwarfdump..

Sourabh Singh Tomar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 11:50:42 PDT 2020


SouraVX marked an inline comment as done.
SouraVX added a comment.

Seems like GCC packs up the compiler(CU unit defined macros) defined in a `macro unit` then import it -- I'll check if there's any benefit from this, probably put a patch or two in llvm.
.debug_macro contents:
0x00000000:
macro header: version = 0x0005, flags = 0x02, debug_line_offset = 0x0000
DW_MACRO_import - import offset: **0x0000001a**
**0x0000001a:**
macro header: version = 0x0005, flags = 0x00
DW_MACRO_define_strp - lineno: 0 macro: __STDC__ 1
DW_MACRO_define_strp - lineno: 0 macro: __STDC_VERSION__ 201112L
DW_MACRO_define_strp - lineno: 0 macro: __STDC_UTF_16__ 1
DW_MACRO_define_strp - lineno: 0 macro: __STDC_UTF_32__ 1


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78006/new/

https://reviews.llvm.org/D78006





More information about the llvm-commits mailing list