[PATCH] D142675: [clang][CGDebugInfo] emit DW_LANG_C_plus_plus_{20|17} DW_LANG_C17

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 26 16:14:45 PST 2023


nickdesaulniers created this revision.
nickdesaulniers added reviewers: dblaikie, jcranmer-intel.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Looks like these DW_AT_language tags made it into the DWARFv5 spec.
Let's emit them when -std=c++{20|17} or -std=c17.

Link: https://dwarfstd.org/Languages.php


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142675

Files:
  clang/lib/CodeGen/CGDebugInfo.cpp
  clang/test/CodeGen/debug-info-programming-language.c
  clang/test/CodeGenCXX/debug-info-artificial-arg.cpp
  clang/test/CodeGenCXX/debug-info-auto-return.cpp
  clang/test/CodeGenCXX/debug-info-enum.cpp
  clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp
  clang/test/CodeGenCXX/debug-info-ms-abi.cpp
  clang/test/CodeGenCXX/debug-info-programming-language.cpp
  clang/test/CodeGenCXX/debug-info-template-limit.cpp
  clang/test/CodeGenCXX/debug-info-template-member.cpp
  clang/test/CodeGenCXX/debug-info-template-partial-specialization.cpp
  clang/test/CodeGenCXX/debug-info-template.cpp
  clang/test/CodeGenCXX/debug-info-union-template.cpp
  clang/test/CodeGenCXX/debug-info.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142675.492591.patch
Type: text/x-patch
Size: 16841 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230127/01627c72/attachment-0001.bin>


More information about the cfe-commits mailing list