================ @@ -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; ---------------- jasonmolenda wrote:
I've never used `mutable`, but declaring an ivar `mutable const` doesn't make sense to me. I understand that marking an ivar `mutable` means a method marked `const` can still modify it, fine I'm sure that's useful. But I don't see why marking this `mutable const` is about? 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