[Lldb-commits] [PATCH] D149702: [DebugInfo] Add language code for the new Mojo language
walter erquinigo via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed May 3 19:39:34 PDT 2023
wallace updated this revision to Diff 519338.
wallace added a comment.
add the language as a vendor extension
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149702/new/
https://reviews.llvm.org/D149702
Files:
lldb/docs/python_api_enums.rst
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
@@ -211,6 +211,7 @@
{"ada2012", eLanguageTypeAda2012},
// Vendor Extensions
{"assembler", eLanguageTypeMipsAssembler},
+ {"mojo", eLanguageTypeMojo},
// Now synonyms, in arbitrary order
{"objc", eLanguageTypeObjC},
{"objc++", eLanguageTypeObjC_plus_plus},
Index: lldb/include/lldb/lldb-enumerations.h
===================================================================
--- lldb/include/lldb/lldb-enumerations.h
+++ lldb/include/lldb/lldb-enumerations.h
@@ -497,6 +497,9 @@
// Language::SetLanguageFromCString and Language::AsCString assume these can
// be used as indexes into array g_languages.
eLanguageTypeMipsAssembler, ///< Mips_Assembler.
+ // Mojo will move to the common list of languages once the DWARF committee
+ // creates a language code for it.
+ eLanguageTypeMojo,
eNumLanguageTypes
};
Index: lldb/docs/python_api_enums.rst
===================================================================
--- lldb/docs/python_api_enums.rst
+++ lldb/docs/python_api_enums.rst
@@ -731,6 +731,7 @@
.. py:data:: eLanguageTypeFortran03
.. py:data:: eLanguageTypeFortran08
.. py:data:: eLanguageTypeMipsAssembler
+.. py:data:: eLanguageTypeMojo
.. py:data:: eLanguageTypeExtRenderScript
.. py:data:: eNumLanguageTypes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149702.519338.patch
Type: text/x-patch
Size: 1461 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230504/2d105a60/attachment.bin>
More information about the lldb-commits
mailing list