From f4f54206d9591e8d5b11b7615ef7eb2b25b25312 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Thu, 7 Jul 2011 23:45:49 +0000 Subject: [PATCH] The Python API does not need SBEvent::BroadcasterMatchesPtr() when SBEvent::BroadcasterMatchesRef() suffices. llvm-svn: 134659 --- lldb/include/lldb/API/SBEvent.h | 2 ++ lldb/test/python_api/default-constructor/sb_event.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lldb/include/lldb/API/SBEvent.h b/lldb/include/lldb/API/SBEvent.h index 7869b814d807..d65bdc4520f0 100644 --- a/lldb/include/lldb/API/SBEvent.h +++ b/lldb/include/lldb/API/SBEvent.h @@ -49,8 +49,10 @@ public: lldb::SBBroadcaster GetBroadcaster () const; +#ifndef SWIG bool BroadcasterMatchesPtr (const lldb::SBBroadcaster *broadcaster); +#endif bool BroadcasterMatchesRef (const lldb::SBBroadcaster &broadcaster); diff --git a/lldb/test/python_api/default-constructor/sb_event.py b/lldb/test/python_api/default-constructor/sb_event.py index ae9d44ea4927..c64f9ba927c2 100644 --- a/lldb/test/python_api/default-constructor/sb_event.py +++ b/lldb/test/python_api/default-constructor/sb_event.py @@ -12,7 +12,6 @@ def fuzz_obj(obj): # Do fuzz testing on the broadcaster obj, it should not crash lldb. import sb_broadcaster sb_broadcaster.fuzz_obj(broadcaster) - obj.BroadcasterMatchesPtr(None) obj.BroadcasterMatchesRef(broadcaster) obj.GetDescription(lldb.SBStream()) obj.Clear()