[PATCH] D18706: [DWARF] Force a linkage_name on an inlined subprogram's abstract origin

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 1 11:44:10 PDT 2016


probinson created this revision.
probinson added reviewers: echristo, dblaikie, aprantl.
probinson added a subscriber: llvm-commits.

When we suppress linkage names, for a non-inlined subprogram the name
can still be found in the object-file symbol table, because we have
the code address of the subprogram.  This is not the case for an
inlined subprogram, so we still want to emit the linkage name in the
DWARF.  Put this on the abstract-origin DIE because it's common to all
inlined instances.

http://reviews.llvm.org/D18706

Files:
  lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
  lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  lib/CodeGen/AsmPrinter/DwarfUnit.h
  test/DebugInfo/Generic/linkage-name-abstract.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18706.52403.patch
Type: text/x-patch
Size: 8772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160401/1e0cffeb/attachment.bin>


More information about the llvm-commits mailing list