================
@@ -120,5 +121,8 @@ void lldb_private::DoDumpRegisterInfo(
     std::string enumerators = flags_type->DumpEnums(terminal_width);
     if (enumerators.size())
       strm << "\n\n" << enumerators;
+  } else if (auto *vector_type =
+                 llvm::dyn_cast_if_present<RegisterTypeVector>(register_type)) 
{
+    strm.Printf("\n\n  Vector elements: %u", vector_type->GetCount());
----------------
DavidSpickett wrote:

(not read the whole PR yet)

Either add tests for this or remove it and add register info compatibility 
later.

I wonder what we can do about showing elements here, if an element can itself 
be another type that might get tricky.

I don't mind it just being number of elements for now though. You can test it 
in the API test file easily.

https://github.com/llvm/llvm-project/pull/217128
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to