[Lldb-commits] [lldb] [lldb] Cache register types by object UID and register size (PR #215874)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 14 02:49:47 PDT 2026


================
@@ -27,8 +28,11 @@ class RegisterType {
 
   RegisterTypeKind getKind() const { return m_kind; }
 
-  RegisterType(RegisterTypeKind kind, std::string id)
-      : m_kind(kind), m_id(std::move(id)) {}
+  RegisterType(RegisterTypeKind kind, std::string id);
+  RegisterType(const RegisterType &) = delete;
+  RegisterType &operator=(const RegisterType &) = delete;
+  RegisterType(RegisterType &&) = delete;
+  RegisterType &operator=(RegisterType &&) = delete;
----------------
DavidSpickett wrote:

Were these required for this PR or are you just adding them to make it clearer what's allowed?

They can stay here if so, just want to confirm.

https://github.com/llvm/llvm-project/pull/215874


More information about the lldb-commits mailing list