[Lldb-commits] [lldb] [lldb] Parse and display register field enums (PR #95768)
Med Ismail Bennani via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 18 12:55:47 PDT 2024
================
@@ -67,8 +66,33 @@ CompilerType RegisterTypeBuilderClang::GetRegisterType(
// We assume that RegisterFlags has padded and sorted the fields
// already.
for (const RegisterFlags::Field &field : flags.GetFields()) {
+ CompilerType field_type = field_uint_type;
+
+ if (const FieldEnum *enum_type = field.GetEnum()) {
+ const FieldEnum::Enumerators &enumerators = enum_type->GetEnumerators();
+
+ if (enumerators.empty())
+ continue;
+
+ std::string enum_type_name =
----------------
medismailben wrote:
ditto
https://github.com/llvm/llvm-project/pull/95768
More information about the lldb-commits
mailing list