[all-commits] [llvm/llvm-project] bb3980: DebugInfo: Don't use enumerators in template names...

David Blaikie via All-commits all-commits at lists.llvm.org
Tue Apr 5 10:18:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bb3980ae9fa7e19540080285f2bf2d960ea802fc
      https://github.com/llvm/llvm-project/commit/bb3980ae9fa7e19540080285f2bf2d960ea802fc
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2022-04-05 (Tue, 05 Apr 2022)

  Changed paths:
    M clang/include/clang/AST/PrettyPrinter.h
    M clang/lib/AST/TemplateBase.cpp
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/test/CodeGenCXX/debug-info-simple-template-names.cpp
    M llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
    M llvm/test/tools/llvm-dwarfdump/X86/prettyprint_types.s
    M llvm/test/tools/llvm-dwarfdump/X86/simplified-template-names.s

  Log Message:
  -----------
  DebugInfo: Don't use enumerators in template names for debug info as they are not canonical

Since enumerators may not be available in every translation unit they
can't be reliably used to name entities. (this also makes simplified
template name roundtripping infeasible - since the expected name could
only be rebuilt if the enumeration definition could be found (or only if
it couldn't be found, depending on the context of the original name))




More information about the All-commits mailing list