[llvm] [llvm][Dwarf] Create re-usable constants for C-language DWARFv6 language codes (PR #163199)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 14 08:34:29 PDT 2025
================
@@ -246,29 +262,29 @@ inline std::optional<SourceLanguage> toDW_LANG(SourceLanguageName name,
case DW_LNAME_C: // YYYYMM, K&R 000000
if (version == 0)
return DW_LANG_C;
- if (version <= 198912)
+ if (version <= DW_LANG_VERSION_C89)
----------------
adrian-prantl wrote:
Right, we would either need one macro per language or a real lookup table. And wether the table lives in code or data doesn't make a huge difference.
https://github.com/llvm/llvm-project/pull/163199
More information about the llvm-commits
mailing list