Wrap LLVMGetPointerToGlobal & add ExecutionEngine.get_pointer_to_global.
This commit is contained in:
parent
f01da12e16
commit
dd32ce56b1
3 changed files with 23 additions and 0 deletions
|
|
@ -226,6 +226,10 @@ class ExecutionEngine(llvm.Handle):
|
|||
core.check_is_function(fn)
|
||||
return _core.LLVMGetPointerToFunction(self.ptr,fn.ptr)
|
||||
|
||||
def get_pointer_to_global(self, val):
|
||||
core.check_is_global_value(val)
|
||||
return _core.LLVMGetPointerToGlobal(self.ptr, val.ptr)
|
||||
|
||||
def run_static_ctors(self):
|
||||
_core.LLVMRunStaticConstructors(self.ptr)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue