[all-commits] [llvm/llvm-project] c20381: llvm-dwarf-dump: include type name for AT_containi...

Felipe de Azevedo Piovezan via All-commits all-commits at lists.llvm.org
Fri Jun 17 17:52:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c20381b226039d5789929c1942a2003711d6b4d0
      https://github.com/llvm/llvm-project/commit/c20381b226039d5789929c1942a2003711d6b4d0
  Author: Felipe de Azevedo Piovezan <piovezan.fpi at gmail.com>
  Date:   2022-06-18 (Sat, 18 Jun 2022)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
    M llvm/test/DebugInfo/Generic/containing-type-extension.ll
    M llvm/test/DebugInfo/Generic/tu-composite.ll
    M llvm/test/DebugInfo/X86/containing-type-extension-rust.ll

  Log Message:
  -----------
  llvm-dwarf-dump: include type name for AT_containing_type

Type attributes are currently printed as:
  DW_AT_type    (<address> "<name>")
For example:
  DW_AT_type    (0x00000086 "double")

However, containing_type attributes omit the name, for example:
  DW_AT_containing_type    (0x00000086)

In order to make the dwarf dumps easier to read, and to have consistency
between the type-like attributes, this commit changes the way
DW_AT_containing_type is printed so that it includes the name of the
type it refers to:
  DW_AT_containing_type    (0x00000086 "double")

Reviewed By: dblaikie

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




More information about the All-commits mailing list