Add clone method to TargetData.
This commit is contained in:
parent
3fbce4c0f9
commit
a6ed8d55f8
1 changed files with 3 additions and 0 deletions
|
|
@ -248,6 +248,9 @@ class TargetData(Pass):
|
||||||
def new(strrep):
|
def new(strrep):
|
||||||
return TargetData(_core.LLVMCreateTargetData(strrep))
|
return TargetData(_core.LLVMCreateTargetData(strrep))
|
||||||
|
|
||||||
|
def clone(self):
|
||||||
|
return TargetData.new(str(self))
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return _core.LLVMTargetDataAsString(self.ptr)
|
return _core.LLVMTargetDataAsString(self.ptr)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue