[PATCH] Module flag to suppress the DWARF entries DW_AT_MIPS_linkage_name and DW_AT_linkage_name.

Wolfgang Pieb wolfgang_pieb at playstation.sony.com
Wed Oct 1 18:20:09 PDT 2014


Based on everyone's feedback this is the second attempt at providing a way to suppress the DWARF linkage name attributes.

Instead of implementing a backend option, this change implements a metadata module flag “Dwarf Gen Flags”, which itself is intended as a list of flags controlling Dwarf emission. The only supported element of the list is “suppress-linkage-names” which, when present, causes the DWARF attributes DW_AT_MIPS_linkage_name and DW_AT_link_name to be suppressed.

This implementation works also for LTO, although the presence of the flag in one module suppresses the attributes for the entire link, which is different from the non-LTO behavior (only the attributes in the modules with the flag are suppressed).

http://reviews.llvm.org/D5510

Files:
  lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.h
  lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  test/DebugInfo/suppress-linkage-entries.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5510.14303.patch
Type: text/x-patch
Size: 7616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141002/ee80b82b/attachment.bin>


More information about the llvm-commits mailing list