diff options
Diffstat (limited to 'contrib/llvm-project/lldb/bindings/interface/SBModuleExtensions.i')
| -rw-r--r-- | contrib/llvm-project/lldb/bindings/interface/SBModuleExtensions.i | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/llvm-project/lldb/bindings/interface/SBModuleExtensions.i b/contrib/llvm-project/lldb/bindings/interface/SBModuleExtensions.i index 4f35e433bf92..ded1adae3e6a 100644 --- a/contrib/llvm-project/lldb/bindings/interface/SBModuleExtensions.i +++ b/contrib/llvm-project/lldb/bindings/interface/SBModuleExtensions.i @@ -28,6 +28,11 @@ STRING_EXTENSION_OUTSIDE(SBModule) %extend lldb::SBModule { #ifdef SWIGPYTHON %pythoncode %{ + # operator== is a free function, which swig does not handle, so we inject + # our own equality operator here + def __eq__(self, other): + return not self.__ne__(other) + def __len__(self): '''Return the number of symbols in a lldb.SBModule object.''' return self.GetNumSymbols() |
