diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-28 20:03:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-28 20:03:44 +0000 |
commit | a7e04b04c5f29b7b577a0f2f61bbb7cee17ca4d2 (patch) | |
tree | f4e3a665d4ba758e8a1e1dbbdf370d097ae54bea /llvm/include/llvm-c/Core.h | |
parent | 6fd5c65095904b653609ba84d208be68d28f411a (diff) | |
download | bcm5719-llvm-a7e04b04c5f29b7b577a0f2f61bbb7cee17ca4d2.tar.gz bcm5719-llvm-a7e04b04c5f29b7b577a0f2f61bbb7cee17ca4d2.zip |
add a function to the C api to get the context out of a module, patch
by Eric Dobson!
llvm-svn: 120259
Diffstat (limited to 'llvm/include/llvm-c/Core.h')
-rw-r--r-- | llvm/include/llvm-c/Core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index 433958323f3..b9a8e4af568 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/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: |