From: Pavel Labath Date: Fri, 27 Sep 2019 11:30:16 +0000 (+0000) Subject: Fix some swig warnings X-Git-Tag: llvmorg-11-init~8143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a90ee1a615f8860b47c0938013de9ce6f9bcaba;p=platform%2Fupstream%2Fllvm.git Fix some swig warnings Previously, these were unseen because the wrapper script would swallow them. This fixes the following types of warnings: - methods being declared more than once - swig complained about ignoring operator=, so I just removed it llvm-svn: 373069 --- diff --git a/lldb/scripts/interface/SBBreakpoint.i b/lldb/scripts/interface/SBBreakpoint.i index 8aabb2b..6df0b95 100644 --- a/lldb/scripts/interface/SBBreakpoint.i +++ b/lldb/scripts/interface/SBBreakpoint.i @@ -223,12 +223,6 @@ public: SBError AddLocation(SBAddress &address); - bool - operator == (const lldb::SBBreakpoint& rhs); - - bool - operator != (const lldb::SBBreakpoint& rhs); - static bool EventIsBreakpointEvent (const lldb::SBEvent &event); diff --git a/lldb/scripts/interface/SBBreakpointName.i b/lldb/scripts/interface/SBBreakpointName.i index f9feaa9..42dd423 100644 --- a/lldb/scripts/interface/SBBreakpointName.i +++ b/lldb/scripts/interface/SBBreakpointName.i @@ -34,8 +34,6 @@ public: ~SBBreakpointName(); - const lldb::SBBreakpointName &operator=(const lldb::SBBreakpointName &rhs); - // Tests to see if the opaque breakpoint object in this object matches the // opaque breakpoint object in "rhs". bool operator==(const lldb::SBBreakpointName &rhs); diff --git a/lldb/scripts/interface/SBModule.i b/lldb/scripts/interface/SBModule.i index ba8f5fb..06a4628 100644 --- a/lldb/scripts/interface/SBModule.i +++ b/lldb/scripts/interface/SBModule.i @@ -342,12 +342,6 @@ public: lldb::SBAddress GetObjectFileEntryPointAddress() const; - bool - operator == (const lldb::SBModule &rhs) const; - - bool - operator != (const lldb::SBModule &rhs) const; - %pythoncode %{ def __len__(self): '''Return the number of symbols in a lldb.SBModule object.''' diff --git a/lldb/scripts/interface/SBStructuredData.i b/lldb/scripts/interface/SBStructuredData.i index 99b3247..c7601bf 100644 --- a/lldb/scripts/interface/SBStructuredData.i +++ b/lldb/scripts/interface/SBStructuredData.i @@ -33,8 +33,6 @@ namespace lldb { void Clear(); - lldb::SBStructuredData &operator=(const lldb::SBStructuredData &rhs); - lldb::StructuredDataType GetType() const; size_t GetSize() const; diff --git a/lldb/scripts/interface/SBThreadPlan.i b/lldb/scripts/interface/SBThreadPlan.i index 05789f1f..edce0ee 100644 --- a/lldb/scripts/interface/SBThreadPlan.i +++ b/lldb/scripts/interface/SBThreadPlan.i @@ -38,6 +38,9 @@ public: ~SBThreadPlan (); bool + IsValid(); + + bool IsValid() const; explicit operator bool() const; @@ -89,11 +92,6 @@ public: bool IsPlanStale(); - bool - IsValid(); - - explicit operator bool() const; - SBThreadPlan QueueThreadPlanForStepOverRange (SBAddress &start_address, lldb::addr_t range_size);