Added Module.id property (getter+setter).
Updated test/asm.py to use unittest.
This commit is contained in:
parent
aadf140a06
commit
9bbeee519b
6 changed files with 57 additions and 12 deletions
|
|
@ -507,7 +507,14 @@ class Module(llvm.Ownable, llvm.Cacheable):
|
|||
|
||||
def add_library(self, name):
|
||||
return _core.LLVMModuleAddLibrary(self.ptr, name)
|
||||
|
||||
|
||||
def _get_id(self):
|
||||
return _core.LLVMGetModuleIdentifier(self.ptr)
|
||||
|
||||
def _set_id(self, string):
|
||||
_core.LLVMSetModuleIdentifier(self.ptr, string)
|
||||
|
||||
id = property(_get_id, _set_id)
|
||||
|
||||
#===----------------------------------------------------------------------===
|
||||
# Types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue