[all-commits] [llvm/llvm-project] 742465: [DWARFv5][DWARFLinker] avoid stripping template na...

avl-llvm via All-commits all-commits at lists.llvm.org
Wed Jun 28 03:08:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7424655c2646c5b39127df39694a18f9e76c5567
      https://github.com/llvm/llvm-project/commit/7424655c2646c5b39127df39694a18f9e76c5567
  Author: Alexey Lapshin <a.v.lapshin at mail.ru>
  Date:   2023-06-28 (Wed, 28 Jun 2023)

  Changed paths:
    M llvm/include/llvm/DWARFLinker/DWARFLinker.h
    M llvm/lib/DWARFLinker/DWARFLinker.cpp
    A llvm/test/tools/dsymutil/X86/Inputs/dwarf5-accel.o
    A llvm/test/tools/dsymutil/X86/dwarf5-accel.test

  Log Message:
  -----------
  [DWARFv5][DWARFLinker] avoid stripping template names for .debug_names.

DWARFLinker puts three names for subprograms into the .apple_names and
.debug_names: short name, linkage name, name without template parameters.

DW_TAG_subprogram
   DW_AT_linkage_name "_Z3fooIcEvv"
   DW_AT_name "foo<char>"

short name: "foo<char>"
linkage name: "_Z3fooIcEvv"
name without template parameters: "foo"

DWARFv5 does not require stripping template parameters for subprogram name.
Current llvm-dwarfdump --verify reports the error if names stored in
accelerator table do not match with DIE name(name with stripped template
parameters stored in accelerator table does not match with original DIE name).
This patch does not store name without template parameters into the .debug_names table.

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




More information about the All-commits mailing list