================
@@ -62,7 +62,10 @@ struct RegisterInfo {
   /// rax ax, ah, and al.
   uint32_t *invalidate_regs;
   /// If not nullptr, a type defined by XML descriptions.
-  const RegisterFlags *flags_type;
+  /// This is mutable so that it may be updated after the register info tables
+  /// have been constructed. For example a specific target OS may have a
+  /// different layout.
+  mutable const RegisterFlags *flags_type;
----------------
DavidSpickett wrote:

My intent is that the `RegisterFlags` pointed to is const, but that you can 
change which `RegisterFlags` is pointed to. Or in other words, you can change 
the information but only if you change all the fields at once.

Whether what I have written does that, I will double check, and expand the 
comment to clarify.

https://github.com/llvm/llvm-project/pull/70300
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to