return lib.LLVMGetSymbolAddress(self)
- @CachedProperty
- def file_offset(self):
- """The offset of this symbol in the file, in long bytes."""
- if self.expired:
- raise Exception('Symbol instance has expired.')
-
- return lib.LLVMGetSymbolFileOffset(self)
-
@CachedProperty
def size(self):
"""The size of the symbol, in long bytes."""
"""Cache all cacheable properties."""
getattr(self, 'name')
getattr(self, 'address')
- getattr(self, 'file_offset')
getattr(self, 'size')
def expire(self):
library.LLVMGetSymbolAddress.argtypes = [Symbol]
library.LLVMGetSymbolAddress.restype = c_uint64
- library.LLVMGetSymbolFileOffset.argtypes = [Symbol]
- library.LLVMGetSymbolFileOffset.restype = c_uint64
-
library.LLVMGetSymbolSize.argtypes = [Symbol]
library.LLVMGetSymbolSize.restype = c_uint64