Fix: ExecutionEngine should own TargetData instance returned from ee.target_data
This commit is contained in:
parent
ca1a23dff5
commit
6bc5b72c71
2 changed files with 5 additions and 2 deletions
|
|
@ -366,7 +366,9 @@ class TargetMachine(llvm.Ownable):
|
|||
'''get target data of this machine
|
||||
'''
|
||||
ptr = _core.LLVMTargetMachineGetTargetData(self.ptr)
|
||||
return TargetData(ptr)
|
||||
td = TargetData(ptr)
|
||||
td._own(self)
|
||||
return td
|
||||
|
||||
@property
|
||||
def target_name(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue