[PATCH] D69743: [CGDebugInfo] Emit subprograms for decls when AT_tail_call is understood

David Blaikie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 4 14:20:23 PST 2019


dblaikie added a comment.

In D69743#1733101 <https://reviews.llvm.org/D69743#1733101>, @vsk wrote:

> In D69743#1732967 <https://reviews.llvm.org/D69743#1732967>, @dblaikie wrote:
>
> > What's the extra DWARF that's emitted from the backend? Is there a corresponding LLVM code change/test, or is the functionality there but dormant in this particular case? (& already running/tested in other cases, such as when fn1 is defined in the same CU)
>
>
> The extra DWARF would look like:
>
>   DW_TAG_subprogram
>                   DW_AT_name	("fn1")
>                   DW_AT_declaration	(true)
>
>
> This clang change has no corresponding llvm logic change. The functionality to emit a subprogram for a declaration is already present & tested in llvm, as is the logic to use such a subprogram to create a TAG_call_site (llvm/test/DebugInfo/X86/dwarf-callsite-related-attrs.ll is a test, and the logic is in `DwarfDebug::constructCallSiteEntryDIEs`). That test should cover the case where a function has no subprogram, though.


OK, thanks for the context!


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

https://reviews.llvm.org/D69743





More information about the cfe-commits mailing list