mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +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:
@ -329,6 +329,9 @@ void LLVMDumpModule(LLVMModuleRef M);
|
|||||||
/** See Module::setModuleInlineAsm. */
|
/** See Module::setModuleInlineAsm. */
|
||||||
void LLVMSetModuleInlineAsm(LLVMModuleRef M, const char *Asm);
|
void LLVMSetModuleInlineAsm(LLVMModuleRef M, const char *Asm);
|
||||||
|
|
||||||
|
/** See Module::getContext. */
|
||||||
|
LLVMContextRef LLVMGetModuleContext(LLVMModuleRef M);
|
||||||
|
|
||||||
/*===-- Types -------------------------------------------------------------===*/
|
/*===-- Types -------------------------------------------------------------===*/
|
||||||
|
|
||||||
/* LLVM types conform to the following hierarchy:
|
/* 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 types -----------------------------------------------===*/
|
||||||
|
|
||||||
/*--.. Operations on all types (mostly) ....................................--*/
|
/*--.. Operations on all types (mostly) ....................................--*/
|
||||||
|
Reference in New Issue
Block a user