[lldb] Remove SBCommandReturnObject::ref
authorRaphael Isemann <teemperor@gmail.com>
Tue, 1 Jun 2021 15:50:26 +0000 (17:50 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 1 Jun 2021 15:57:21 +0000 (17:57 +0200)
This function was added in D67589 and returns an internal CommandReturnObject
which isn't allowed in the SB API. This patch just makes it private as all uses
of this function are inside SBCommandReturnObject.

Reviewed By: jankratochvil

Differential Revision: https://reviews.llvm.org/D103390

lldb/include/lldb/API/SBCommandReturnObject.h

index 6e1e7ad..5738c91 100644 (file)
@@ -105,9 +105,6 @@ public:
 
   void SetError(const char *error_cstr);
 
-  // ref() is internal for LLDB only.
-  lldb_private::CommandReturnObject &ref() const;
-
 protected:
   friend class SBCommandInterpreter;
   friend class SBOptions;
@@ -119,6 +116,8 @@ protected:
   lldb_private::CommandReturnObject &operator*() const;
 
 private:
+  lldb_private::CommandReturnObject &ref() const;
+
   std::unique_ptr<lldb_private::SBCommandReturnObjectImpl> m_opaque_up;
 };