Reapply "DebugInfo: Add/support new DW_LANG codes for recent C and C++ versions""
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 8 Dec 2022 01:28:48 +0000 (01:28 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 12 Dec 2022 22:36:23 +0000 (22:36 +0000)
commitc73876db4f2dfd2c38d5720f62509e57f23b2059
tree6cfadad02142146b8aec486bcd23fda5be8a3121
parent512a98e7184e5d48cefbe39da049af3b08ad3919
Reapply "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.

This caused regressions due to PS4 having a different default for C
language version than other targets. Those tests were adapted to be
relaxed about which C version is used.

This reapplies commit 3c312e48f325c1b1ee11404ee6cfa08ee00037b0
Which was reverted by commit 6ab6085c77ef9bcdabf842342f63fba4291791a4.

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