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
11
llvm/extra.h
11
llvm/extra.h
|
|
@ -41,6 +41,17 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Wraps llvm::Module::getModuleIdentifier()
|
||||
*/
|
||||
char *LLVMGetModuleIdentifier(LLVMModuleRef module);
|
||||
|
||||
/*
|
||||
* Wraps llvm::Module::setModuleIdentifier()
|
||||
*/
|
||||
void LLVMSetModuleIdentifier(LLVMModuleRef module, const char * name);
|
||||
|
||||
/* Notes:
|
||||
* - Some returned strings must be disposed of by LLVMDisposeMessage. These are
|
||||
* indicated in the comments. Where it is not indicated, DO NOT call dispose.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue