[all-commits] [llvm/llvm-project] 2e58a1: DebugInfo: Include template parameters for simplif...

David Blaikie via All-commits all-commits at lists.llvm.org
Sun Jan 23 16:21:19 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e58a18910867ba6795066e044293e6daf89edf5
      https://github.com/llvm/llvm-project/commit/2e58a18910867ba6795066e044293e6daf89edf5
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2022-01-23 (Sun, 23 Jan 2022)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
    M llvm/test/DebugInfo/X86/tu-to-non-tu.ll

  Log Message:
  -----------
  DebugInfo: Include template parameters for simplified template decls in type units

LLVM DebugInfo CodeGen synthesizes type declarations in type units when
referencing types that are not in type units. When those synthesized
types are templates and simplified template names (or mangled simplified
template names) are in use, the template arguments must be attached to
those declarations.

A deeper fix (with a CU or DICompositeType flag) that would also support
other uses of clang's -debug-forward-template-args (such as Sony's
platform) could/should be implemented to fix this more broadly.




More information about the All-commits mailing list