DebugInfo: Add/support new DW_LANG codes for recent C and C++ versions
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 6 Dec 2022 01:15:52 +0000 (01:15 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 6 Dec 2022 21:11:08 +0000 (21:11 +0000)
commit3c312e48f325c1b1ee11404ee6cfa08ee00037b0
treed8d563737a825c382dc080d949d8230e502ab180
parentcd95d7998c1dd30c6353aeca2686697287cb0443
DebugInfo: Add/support new DW_LANG codes for recent C and C++ versions

This may be a breaking change for consumers if they're trying to detect
if code is C or C++, since it'll start using new codes that they may not
be ready to recognize, in which case they may fall back to non-C
handling.

Differential Revision: https://reviews.llvm.org/D138597
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGen/debug-info-preprocessed-file.i
clang/test/CodeGen/debug-info-programming-language.c [new file with mode: 0644]
clang/test/CodeGenCXX/debug-info-programming-language.cpp
clang/test/PCH/debug-info-pch-container-path.c