[Lldb-commits] [PATCH] D103390: [lldb] Remove SBCommandReturnObject::ref

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon May 31 01:49:35 PDT 2021


teemperor created this revision.
teemperor added a reviewer: jankratochvil.
teemperor added a project: LLDB.
Herald added a subscriber: JDevlieghere.
teemperor requested review of this revision.
Herald added a subscriber: lldb-commits.

This function was added in D67589 <https://reviews.llvm.org/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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103390

Files:
  lldb/include/lldb/API/SBCommandReturnObject.h


Index: lldb/include/lldb/API/SBCommandReturnObject.h
===================================================================
--- lldb/include/lldb/API/SBCommandReturnObject.h
+++ lldb/include/lldb/API/SBCommandReturnObject.h
@@ -105,9 +105,6 @@
 
   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 @@
   lldb_private::CommandReturnObject &operator*() const;
 
 private:
+  lldb_private::CommandReturnObject &ref() const;
+
   std::unique_ptr<lldb_private::SBCommandReturnObjectImpl> m_opaque_up;
 };
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103390.348746.patch
Type: text/x-patch
Size: 677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210531/52580e2e/attachment-0001.bin>


More information about the lldb-commits mailing list