diff options
author | Greg Clayton <gclayton@apple.com> | 2010-12-05 19:36:39 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-12-05 19:36:39 +0000 |
commit | 1c2f283864d5457b0cb04310aaa3013e1f48a959 (patch) | |
tree | bc316ba2684e88852d49d43bf439bba05188e801 | |
parent | 920c696c543e4862bc1c73b5072f17330f3d1201 (diff) | |
download | bcm5719-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.h | 3 | ||||
-rw-r--r-- | lldb/source/API/SBBroadcaster.cpp | 7 |
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 { |