[PATCH] D36835: [llvm-dwarfdump] Hide .debug_str and die reference offsets in brief mode

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 17 08:46:35 PDT 2017


JDevlieghere created this revision.
Herald added a subscriber: hiraditya.

- Hide .debug_str offset
- Hide offset into the CU of a die reference

Before:

  0x0000002a:   DW_TAG_subprogram
                  DW_AT_low_pc    (0x0000000100000fb0)
                  DW_AT_high_pc   (0x00000008)
                  DW_AT_frame_base        (<0x1> 56 )
                  DW_AT_name      ( .debug_str[0x00000056] = "main")
                  DW_AT_decl_file ("/Users/jonas/llvm/brief/a.c")
                  DW_AT_decl_line (1)
                  DW_AT_type      (cu + 0x0043 => {0x00000043})
                  DW_AT_external  (true)

After:

  0x0000002a:   DW_TAG_subprogram
                  DW_AT_low_pc    (0x0000000100000fb0)
                  DW_AT_high_pc   (0x00000008)
                  DW_AT_frame_base        (<0x1> 56 )
                  DW_AT_name      ( .debug_str = "main")
                  DW_AT_decl_file ("/Users/jonas/llvm/brief/a.c")
                  DW_AT_decl_line (1)
                  DW_AT_type      (cu + 0x0043)
                  DW_AT_external  (true)


Repository:
  rL LLVM

https://reviews.llvm.org/D36835

Files:
  llvm/include/llvm/DebugInfo/DWARF/DWARFFormValue.h
  llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
  llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36835.111524.patch
Type: text/x-patch
Size: 4000 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170817/1e78e842/attachment.bin>


More information about the llvm-commits mailing list