Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / bindings / interface / SBSymbolExtensions.i
blob47f17ff6a4a764b566276a3438cf6e59c3fc2d61
1 STRING_EXTENSION_OUTSIDE(SBSymbol)
3 %extend lldb::SBSymbol {
4 #ifdef SWIGPYTHON
5 %pythoncode %{
6 # operator== is a free function, which swig does not handle, so we inject
7 # our own equality operator here
8 def __eq__(self, other):
9 return not self.__ne__(other)
11 def __hex__(self):
12 return self.GetStartAddress()
14 def get_instructions_from_current_target (self):
15 return self.GetInstructions (target)
17 name = property(GetName, None, doc='''A read only property that returns the name for this symbol as a string.''')
18 mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this symbol as a string.''')
19 type = property(GetType, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eSymbolType") that represents the type of this symbol.''')
20 addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this symbol.''')
21 end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this symbol.''')
22 prologue_size = property(GetPrologueByteSize, None, doc='''A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.''')
23 instructions = property(get_instructions_from_current_target, None, doc='''A read only property that returns an lldb object that represents the instructions (lldb.SBInstructionList) for this symbol.''')
24 external = property(IsExternal, None, doc='''A read only property that returns a boolean value that indicates if this symbol is externally visiable (exported) from the module that contains it.''')
25 synthetic = property(IsSynthetic, None, doc='''A read only property that returns a boolean value that indicates if this symbol was synthetically created from information in module that contains it.''')
27 #endif