summaryrefslogtreecommitdiff
path: root/include/llvm-c
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-10-08 03:45:09 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-10-08 03:45:09 +0000
commit6d6203dff3560a2cc3ac8ec620ac3b105b0c7cc7 (patch)
tree01f0b3310d4b51e014b781cbf183bc225c00eee8 /include/llvm-c
parentf443ba7f9733cf7505b71f14760dd6109a9d6bde (diff)
downloadllvm-6d6203dff3560a2cc3ac8ec620ac3b105b0c7cc7.tar.gz
llvm-6d6203dff3560a2cc3ac8ec620ac3b105b0c7cc7.tar.bz2
llvm-6d6203dff3560a2cc3ac8ec620ac3b105b0c7cc7.tar.xz
C and Objective Caml bindings for getFunction and getNamedGlobal. Also enhanced
the Objective Caml 'declare_*' functions to behave more or less like getOrInsertFunction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c')
-rw-r--r--include/llvm-c/Core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h
index 3f8961b765..d8bff3211a 100644
--- a/include/llvm-c/Core.h
+++ b/include/llvm-c/Core.h
@@ -318,6 +318,7 @@ void LLVMSetAlignment(LLVMValueRef Global, unsigned Bytes);
/* Operations on global variables */
LLVMValueRef LLVMAddGlobal(LLVMModuleRef M, LLVMTypeRef Ty, const char *Name);
+LLVMValueRef LLVMGetNamedGlobal(LLVMModuleRef M, const char *Name);
void LLVMDeleteGlobal(LLVMValueRef GlobalVar);
int LLVMHasInitializer(LLVMValueRef GlobalVar);
LLVMValueRef LLVMGetInitializer(LLVMValueRef GlobalVar);
@@ -330,6 +331,7 @@ void LLVMSetGlobalConstant(LLVMValueRef GlobalVar, int IsConstant);
/* Operations on functions */
LLVMValueRef LLVMAddFunction(LLVMModuleRef M, const char *Name,
LLVMTypeRef FunctionTy);
+LLVMValueRef LLVMGetNamedFunction(LLVMModuleRef M, const char *Name);
void LLVMDeleteFunction(LLVMValueRef Fn);
unsigned LLVMCountParams(LLVMValueRef Fn);
void LLVMGetParams(LLVMValueRef Fn, LLVMValueRef *Params);