[PATCH] D70350: [DWARF] Allow cross-CU references of subprogram definitions

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 14:27:36 PST 2019


vsk updated this revision to Diff 231992.
vsk added a comment.
This revision is now accepted and ready to land.

I've taken @dblaikie's advice and introduced `DwarfDebug::constructSubprogramDefinitionDIE` to ensure that a callee DIE is available when emitting call site tags. I tested this out by verifying the DWARF in `justlto.o` from an LTO build of xnu.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70350/new/

https://reviews.llvm.org/D70350

Files:
  llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
  llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  llvm/test/DebugInfo/X86/lto-cross-cu-call-origin-ref.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70350.231992.patch
Type: text/x-patch
Size: 13652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191203/d1aef964/attachment-0001.bin>


More information about the llvm-commits mailing list