[Lldb-commits] [lldb] [lldb] Print register enum types only once (PR #204818)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 1 05:38:02 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;
----------------
DavidSpickett wrote:
Now using MapVector.
https://github.com/llvm/llvm-project/pull/204818
More information about the lldb-commits
mailing list