diff options
author | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2010-02-28 09:46:13 +0000 |
---|---|---|
committer | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2010-02-28 09:46:13 +0000 |
commit | 06894b38247303f9827529204cd1009af9705781 (patch) | |
tree | a71d8ab028a312594da8a38bf4590381fe17cba8 /llvm/include/llvm-c/Core.h | |
parent | 0fb26ef01f923bfea371c9c263295c80118db822 (diff) | |
download | bcm5719-llvm-06894b38247303f9827529204cd1009af9705781.tar.gz bcm5719-llvm-06894b38247303f9827529204cd1009af9705781.zip |
Add support for global variables in an address space for llvm-c and ocaml.
llvm-svn: 97377
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 17bd99dacce..bdbf3f21f67 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -671,6 +671,9 @@ void LLVMSetAlignment(LLVMValueRef Global, unsigned Bytes); /* Operations on global variables */ LLVMValueRef LLVMAddGlobal(LLVMModuleRef M, LLVMTypeRef Ty, const char *Name); +LLVMValueRef LLVMAddGlobalInAddressSpace(LLVMModuleRef M, LLVMTypeRef Ty, + const char *Name, + unsigned AddressSpace); LLVMValueRef LLVMGetNamedGlobal(LLVMModuleRef M, const char *Name); LLVMValueRef LLVMGetFirstGlobal(LLVMModuleRef M); LLVMValueRef LLVMGetLastGlobal(LLVMModuleRef M); |