mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
add a function to the C api to get the context out of a module, patch
by Eric Dobson! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120259 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf953eaba3
commit
a1ac3bbec7
@ -329,6 +329,9 @@ void LLVMDumpModule(LLVMModuleRef M);
|
||||
/** See Module::setModuleInlineAsm. */
|
||||
void LLVMSetModuleInlineAsm(LLVMModuleRef M, const char *Asm);
|
||||
|
||||
/** See Module::getContext. */
|
||||
LLVMContextRef LLVMGetModuleContext(LLVMModuleRef M);
|
||||
|
||||
/*===-- Types -------------------------------------------------------------===*/
|
||||
|
||||
/* LLVM types conform to the following hierarchy:
|
||||
|
@ -138,6 +138,12 @@ void LLVMSetModuleInlineAsm(LLVMModuleRef M, const char *Asm) {
|
||||
}
|
||||
|
||||
|
||||
/*--.. Operations on module contexts ......................................--*/
|
||||
LLVMContextRef LLVMGetModuleContext(LLVMModuleRef M) {
|
||||
return wrap(&unwrap(M)->getContext());
|
||||
}
|
||||
|
||||
|
||||
/*===-- Operations on types -----------------------------------------------===*/
|
||||
|
||||
/*--.. Operations on all types (mostly) ....................................--*/
|
||||
|
Loading…
Reference in New Issue
Block a user