-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[lldb][Language] Sync LanguageType enumeration with DWARF codes #161810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) ChangesFull diff: https://github.com/llvm/llvm-project/pull/161810.diff 2 Files Affected:
diff --git a/lldb/include/lldb/lldb-enumerations.h b/lldb/include/lldb/lldb-enumerations.h
index fec9fdef44df9..fe6b66fd66957 100644
--- a/lldb/include/lldb/lldb-enumerations.h
+++ b/lldb/include/lldb/lldb-enumerations.h
@@ -522,6 +522,16 @@ enum LanguageType {
eLanguageTypeAssembly = 0x0031,
eLanguageTypeC_sharp = 0x0032,
eLanguageTypeMojo = 0x0033,
+ eLanguageTypeGLSL = 0x0034,
+ eLanguageTypeGLSL_ES = 0x0035,
+ eLanguageTypeHLSL = 0x0036,
+ eLanguageTypeOpenCL_CPP = 0x0037,
+ eLanguageTypeCppForOpenCL = 0x0038,
+ eLanguageTypeSycl = 0x0039,
+ eLanguageTypeMetal = 0x003d,
+ eLanguageTypeRuby = 0x0040,
+ eLanguageTypeMove = 0x0041,
+ eLanguageTypeHylo = 0x0042,
eLanguageTypeLastStandardLanguage = eLanguageTypeMojo,
// Vendor Extensions
diff --git a/lldb/source/Target/Language.cpp b/lldb/source/Target/Language.cpp
index 484d9badde397..e291b42d7264d 100644
--- a/lldb/source/Target/Language.cpp
+++ b/lldb/source/Target/Language.cpp
@@ -244,6 +244,16 @@ struct language_name_pair language_names[] = {
{"assembly", eLanguageTypeAssembly},
{"c-sharp", eLanguageTypeC_sharp},
{"mojo", eLanguageTypeMojo},
+ {"GLSL", eLanguageTypeGLSL},
+ {"GLSL_ES", eLanguageTypeGLSL_ES},
+ {"HLSL", eLanguageTypeHLSL},
+ {"OpenCL_CPP", eLanguageTypeOpenCL_CPP},
+ {"CPP_for_OpenCL", eLanguageTypeCppForOpenCL},
+ {"SYCL", eLanguageTypeSycl},
+ {"Metal", eLanguageTypeMetal},
+ {"Ruby", eLanguageTypeRuby},
+ {"Move", eLanguageTypeMove},
+ {"Hylo", eLanguageTypeHylo},
// Vendor Extensions
{"assembler", eLanguageTypeMipsAssembler},
// Now synonyms, in arbitrary order
|
DWARF codes from what exactly, DWARFv5, things already allocated to be in DWARFv6? |
With the values in Dwarf.def I'll put it in the PR description |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
CI failing with another thing that depends on the size of this enum. |
Ah looks like we've hit this limit here:
Not sure we should really care about this though? Seems like the |
If there's a stack based type to hand use it, but otherwise yeah we were always gonna hit this limit eventually. Also double check that what the comment says is still true. Maybe bitvector got better in the meantime? |
Talked to @adrian-prantl and we might want to just move away from the old-style unversioned language codes in favour of the new DWARFv6 language codes. In which case maybe we can do this differently. Closing for now |
Synchronized with the values in
llvm-project/llvm/include/llvm/BinaryFormat/Dwarf.def
Lines 1012 to 1021 in c2765b7
Added somewhere between DWARFv5 and DWARFv6