Added "void Clear();" methods to SBDebugger, SBTarget and SBThread so they can release their shared pointers.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@109882 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBTarget.cpp b/source/API/SBTarget.cpp
index 85ec06c..b12a5ae 100644
--- a/source/API/SBTarget.cpp
+++ b/source/API/SBTarget.cpp
@@ -353,6 +353,13 @@
return 0;
}
+void
+SBTarget::Clear ()
+{
+ m_opaque_sp.reset();
+}
+
+
SBModule
SBTarget::FindModule (const SBFileSpec &sb_file_spec)
{