summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-04-21 13:45:32 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-04-21 13:45:32 +0000
commit7426771280164bf3829a56af23fcc381c4383423 (patch)
treee26a43a6884c2fe1e82828feeeb6a46a145b4c44 /bindings
parentd329c79f164b5bd876014c4c0225ae298640bd81 (diff)
downloadllvm-7426771280164bf3829a56af23fcc381c4383423.tar.gz
llvm-7426771280164bf3829a56af23fcc381c4383423.tar.bz2
llvm-7426771280164bf3829a56af23fcc381c4383423.tar.xz
Convert getFileOffset to getOffset and move it to its only user.
We normally don't drop functions from the C API's, but in this case I think we can: * The old implementation of getFileOffset was fairly broken * The introduction of LLVMGetSymbolFileOffset was itself a C api breaking change as it removed LLVMGetSymbolOffset. * It is an incredibly specialized use case. The only reason MCJIT needs it is because of its odd position of being a dynamic linker of .o files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/llvm/object.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/bindings/python/llvm/object.py b/bindings/python/llvm/object.py
index 473aa3a108..bba20d28b1 100644
--- a/bindings/python/llvm/object.py
+++ b/bindings/python/llvm/object.py
@@ -311,14 +311,6 @@ class Symbol(LLVMObject):
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."""
if self.expired:
@@ -345,7 +337,6 @@ class Symbol(LLVMObject):
"""Cache all cacheable properties."""
getattr(self, 'name')
getattr(self, 'address')
- getattr(self, 'file_offset')
getattr(self, 'size')
def expire(self):
@@ -495,9 +486,6 @@ def register_library(library):
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