[DebugInfo] Fix the mismatching between C++ language tags and Dwarf versions.
authorEsme-Yi <esme.yi@ibm.com>
Mon, 12 Apr 2021 07:42:54 +0000 (07:42 +0000)
committerEsme-Yi <esme.yi@ibm.com>
Mon, 12 Apr 2021 07:42:54 +0000 (07:42 +0000)
commit62fa9b9388aa114e3b1a58bbdbcd966ae3492ba5
tree173bb0ef9f2c45bfce2278f27c75c6d30eceb1cb
parent6e5199104914c2415092315388ed09fbd9d629f7
[DebugInfo] Fix the mismatching between C++ language tags and Dwarf versions.

Summary: The tags DW_LANG_C_plus_plus_14 and DW_LANG_C_plus_plus_11, introduced in Dwarf-5, are unexpected in previous versions. Fixing the mismathing doesn't have any drawbacks for any other debuggers, but helps dbx.

Reviewed By: aprantl, shchenz

Differential Revision: https://reviews.llvm.org/D99250
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-programming-language.cpp [new file with mode: 0644]
clang/test/Modules/ModuleDebugInfo.cpp