Index: include/lldb/Symbol/Type.h =================================================================== --- include/lldb/Symbol/Type.h +++ include/lldb/Symbol/Type.h @@ -256,14 +256,10 @@ explicit operator bool() const { return IsValid(); } bool operator==(const TypePair &rhs) const { - return compiler_type == rhs.compiler_type && - type_sp.get() == rhs.type_sp.get(); + return compiler_type == rhs.compiler_type; } - bool operator!=(const TypePair &rhs) const { - return compiler_type != rhs.compiler_type || - type_sp.get() != rhs.type_sp.get(); - } + bool operator!=(const TypePair &rhs) const { return !(*this == rhs); } void Clear() { compiler_type.Clear(); Index: scripts/Python/modify-python-lldb.py =================================================================== --- scripts/Python/modify-python-lldb.py +++ scripts/Python/modify-python-lldb.py @@ -143,7 +143,6 @@ 'SBWatchpoint': ['GetID'], 'SBFileSpec': ['GetFilename', 'GetDirectory'], 'SBModule': ['GetFileSpec', 'GetUUIDString'], - 'SBType': ['GetByteSize', 'GetName'] } Index: scripts/interface/SBType.i =================================================================== --- scripts/interface/SBType.i +++ scripts/interface/SBType.i @@ -322,6 +322,10 @@ uint32_t GetTypeFlags (); + bool operator==(lldb::SBType &rhs); + + bool operator!=(lldb::SBType &rhs); + %pythoncode %{ def template_arg_array(self): num_args = self.num_template_args