Added Module.to_native_object() and Module.to_native_assembly().

Added test for these new functions.
This commit is contained in:
Siu Kwan Lam 2012-08-09 15:41:55 -07:00
commit bed4f24cbd
5 changed files with 175 additions and 3 deletions

View file

@ -45,6 +45,11 @@
extern "C" {
#endif
/*
* Wraps TargetMachine::addPassesToEmitFile
*/
unsigned char* LLVMGetNativeCodeFromModule(LLVMModuleRef module, int assembly,
unsigned * lenp);
/*
* Wraps IRBuilder::CreateFence