[Lldb-commits] [lldb] [lldb] Print register enum types only once (PR #204818)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 1 05:46:55 PDT 2026
================
@@ -286,9 +287,14 @@ static void DumpEnumerators(StreamString &strm, size_t indent,
}
std::string RegisterFlags::DumpEnums(uint32_t max_width) const {
- StreamString strm;
- bool printed_enumerators_once = false;
-
+ struct TypeToFields {
+ const FieldEnum *enum_type;
+ std::string field_names;
+ };
+ std::vector<TypeToFields> enum_types;
----------------
felipepiovezan wrote:
Nice, it looks much simpler!
https://github.com/llvm/llvm-project/pull/204818
More information about the lldb-commits
mailing list