[Lldb-commits] [PATCH] D143061: [lldb][Language] Add more language types
Michael Buch via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 14 09:10:55 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0301a492f43e: [lldb][Language] Add more language types (authored by Michael137).
Changed prior to commit:
https://reviews.llvm.org/D143061?vs=493896&id=513622#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143061/new/
https://reviews.llvm.org/D143061
Files:
lldb/include/lldb/lldb-enumerations.h
lldb/source/Target/Language.cpp
Index: lldb/source/Target/Language.cpp
===================================================================
--- lldb/source/Target/Language.cpp
+++ lldb/source/Target/Language.cpp
@@ -194,6 +194,21 @@
{"c++14", eLanguageTypeC_plus_plus_14},
{"fortran03", eLanguageTypeFortran03},
{"fortran08", eLanguageTypeFortran08},
+ {"renderscript", eLanguageTypeRenderScript},
+ {"bliss", eLanguageTypeBLISS},
+ {"kotlin", eLanguageTypeKotlin},
+ {"zig", eLanguageTypeZig},
+ {"crystal", eLanguageTypeCrystal},
+ {"<invalid language>",
+ static_cast<LanguageType>(
+ 0x0029)}, // Not yet taken by any language in the DWARF spec
+ // and thus has no entry in LanguageType
+ {"c++17", eLanguageTypeC_plus_plus_17},
+ {"c++20", eLanguageTypeC_plus_plus_20},
+ {"c17", eLanguageTypeC17},
+ {"fortran18", eLanguageTypeFortran18},
+ {"ada2005", eLanguageTypeAda2005},
+ {"ada2012", eLanguageTypeAda2012},
// Vendor Extensions
{"assembler", eLanguageTypeMipsAssembler},
// Now synonyms, in arbitrary order
Index: lldb/include/lldb/lldb-enumerations.h
===================================================================
--- lldb/include/lldb/lldb-enumerations.h
+++ lldb/include/lldb/lldb-enumerations.h
@@ -479,12 +479,24 @@
eLanguageTypeC_plus_plus_14 = 0x0021, ///< ISO C++:2014.
eLanguageTypeFortran03 = 0x0022, ///< ISO Fortran 2003.
eLanguageTypeFortran08 = 0x0023, ///< ISO Fortran 2008.
+ eLanguageTypeRenderScript = 0x0024,
+ eLanguageTypeBLISS = 0x0025,
+ eLanguageTypeKotlin = 0x0026,
+ eLanguageTypeZig = 0x0027,
+ eLanguageTypeCrystal = 0x0028,
+ eLanguageTypeC_plus_plus_17 = 0x002a, ///< ISO C++:2017.
+ eLanguageTypeC_plus_plus_20 = 0x002b, ///< ISO C++:2020.
+ eLanguageTypeC17 = 0x002c,
+ eLanguageTypeFortran18 = 0x002d,
+ eLanguageTypeAda2005 = 0x002e,
+ eLanguageTypeAda2012 = 0x002f,
+
// Vendor Extensions
// Note: Language::GetNameForLanguageType
// assumes these can be used as indexes into array language_names, and
// Language::SetLanguageFromCString and Language::AsCString assume these can
// be used as indexes into array g_languages.
- eLanguageTypeMipsAssembler = 0x0024, ///< Mips_Assembler.
+ eLanguageTypeMipsAssembler, ///< Mips_Assembler.
eNumLanguageTypes
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143061.513622.patch
Type: text/x-patch
Size: 2338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230414/e474c98e/attachment-0001.bin>
More information about the lldb-commits
mailing list