diff options
Diffstat (limited to 'lldb/bindings/interface/SBFunctionExtensions.i')
| -rw-r--r-- | lldb/bindings/interface/SBFunctionExtensions.i | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/bindings/interface/SBFunctionExtensions.i b/lldb/bindings/interface/SBFunctionExtensions.i index 4efe9cf20946..c64363c9f649 100644 --- a/lldb/bindings/interface/SBFunctionExtensions.i +++ b/lldb/bindings/interface/SBFunctionExtensions.i @@ -3,6 +3,11 @@ STRING_EXTENSION_OUTSIDE(SBFunction) %extend lldb::SBFunction { #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 get_instructions_from_current_target (self): return self.GetInstructions (target) |
