summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-12-05 19:36:39 +0000
committerGreg Clayton <gclayton@apple.com>2010-12-05 19:36:39 +0000
commit1c2f283864d5457b0cb04310aaa3013e1f48a959 (patch)
treebc316ba2684e88852d49d43bf439bba05188e801
parent920c696c543e4862bc1c73b5072f17330f3d1201 (diff)
downloadbcm5719-llvm-1c2f283864d5457b0cb04310aaa3013e1f48a959.tar.gz
bcm5719-llvm-1c2f283864d5457b0cb04310aaa3013e1f48a959.zip
Added "void SBBroadcaster::Clear ();" method to SBBroadcaster.
llvm-svn: 120949
-rw-r--r--lldb/include/lldb/API/SBBroadcaster.h3
-rw-r--r--lldb/source/API/SBBroadcaster.cpp7
2 files changed, 10 insertions, 0 deletions
diff --git a/lldb/include/lldb/API/SBBroadcaster.h b/lldb/include/lldb/API/SBBroadcaster.h
index 6c24826a430..a6db461b8b8 100644
--- a/lldb/include/lldb/API/SBBroadcaster.h
+++ b/lldb/include/lldb/API/SBBroadcaster.h
@@ -34,6 +34,9 @@ public:
IsValid () const;
void
+ Clear ();
+
+ void
BroadcastEventByType (uint32_t event_type, bool unique = false);
void
diff --git a/lldb/source/API/SBBroadcaster.cpp b/lldb/source/API/SBBroadcaster.cpp
index 35f7bffde08..f36a309b04c 100644
--- a/lldb/source/API/SBBroadcaster.cpp
+++ b/lldb/source/API/SBBroadcaster.cpp
@@ -170,6 +170,13 @@ SBBroadcaster::IsValid () const
return m_opaque_ptr != NULL;
}
+void
+SBBroadcaster::Clear ()
+{
+ m_opaque_sp.reset();
+ m_opaque_ptr = NULL;
+}
+
bool
SBBroadcaster::operator == (const SBBroadcaster &rhs) const
{
OpenPOWER on IntegriCloud