[all-commits] [llvm/llvm-project] 0d3e4d: [Debug-Info][llvm-dwarfdump] Don't use DW_FORM_dat...

Esme via All-commits all-commits at lists.llvm.org
Sun Jul 25 20:47:33 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d3e4d9d4d2c9e29f5bd073340588f3c4931fb7c
      https://github.com/llvm/llvm-project/commit/0d3e4d9d4d2c9e29f5bd073340588f3c4931fb7c
  Author: Esme-Yi <esme.yi at ibm.com>
  Date:   2021-07-26 (Mon, 26 Jul 2021)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
    M llvm/test/DebugInfo/MSP430/dwarf-basics.ll
    A llvm/test/DebugInfo/PowerPC/data_member_location_dwarf3.ll

  Log Message:
  -----------
  [Debug-Info][llvm-dwarfdump] Don't use DW_FORM_data4/8
to encode the constants for DW_AT_data_member_location.

Summary: In DWARF v3, DW_FORM_data4/8 in
DW_AT_data_member_location are interpreted as location
list pointers. Interpreting constants as pointers is
not expected, so we use DW_FORM_udata to encode the
constants.

Reviewed By: probinson

Differential Revision: https://reviews.llvm.org/D105687




More information about the All-commits mailing list