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
|
|
@ -90,6 +90,16 @@ char *do_print(W obj)
|
|||
return strdup(buf.str().c_str());
|
||||
}
|
||||
|
||||
char *LLVMGetModuleIdentifier(LLVMModuleRef module)
|
||||
{
|
||||
return strdup(llvm::unwrap(module)->getModuleIdentifier().c_str());
|
||||
}
|
||||
|
||||
void LLVMSetModuleIdentifier(LLVMModuleRef module, const char * name)
|
||||
{
|
||||
llvm::unwrap(module)->setModuleIdentifier(name);
|
||||
}
|
||||
|
||||
char *LLVMDumpModuleToString(LLVMModuleRef module)
|
||||
{
|
||||
std::string s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue