Adopt the intrusive pointers in:
lldb_private::Breakpoint
lldb_private::BreakpointLocations
lldb_private::BreakpointSite
lldb_private::Debugger
lldb_private::StackFrame
lldb_private::Thread
lldb_private::Target
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@139985 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/Target.cpp b/source/Target/Target.cpp
index ca9e936..d6c2dc2 100644
--- a/source/Target/Target.cpp
+++ b/source/Target/Target.cpp
@@ -146,7 +146,9 @@
lldb::TargetSP
Target::GetSP()
{
- return m_debugger.GetTargetList().GetTargetSP(this);
+ // This object contains an instrusive ref count base class so we can
+ // easily make a shared pointer to this object
+ return TargetSP(this);
}
void