can now clone modules
This commit is contained in:
parent
e0d1b94053
commit
d781e83bd1
5 changed files with 64 additions and 0 deletions
|
|
@ -582,6 +582,9 @@ class Module(llvm.Ownable, llvm.Cacheable):
|
|||
ptr = _core.LLVMModuleGetNamedMetaData(self.ptr, name)
|
||||
return NamedMetaData(ptr)
|
||||
|
||||
def clone(self):
|
||||
return Module(_core.LLVMCloneModule(self.ptr))
|
||||
|
||||
#===----------------------------------------------------------------------===
|
||||
# Types
|
||||
#===----------------------------------------------------------------------===
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue