summaryrefslogtreecommitdiff
path: root/include/llvm-c/Core.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-28 20:03:44 +0000
committerChris Lattner <sabre@nondot.org>2010-11-28 20:03:44 +0000
commita1ac3bbec703f7faf20cbc06fa0eb9d34bb4f5f6 (patch)
treee9071f47d3c397cd9db4431bedbcc21eb9fb7a8b /include/llvm-c/Core.h
parentbf953eaba3442f8e25926b8f41423d4d126960f6 (diff)
downloadllvm-a1ac3bbec703f7faf20cbc06fa0eb9d34bb4f5f6.tar.gz
llvm-a1ac3bbec703f7faf20cbc06fa0eb9d34bb4f5f6.tar.bz2
llvm-a1ac3bbec703f7faf20cbc06fa0eb9d34bb4f5f6.tar.xz
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
Diffstat (limited to 'include/llvm-c/Core.h')
-rw-r--r--include/llvm-c/Core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h
index 433958323f..b9a8e4af56 100644
--- a/include/llvm-c/Core.h
+++ b/include/llvm-c/Core.h
@@ -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: