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 | 8e130b1d0d53346e05d0a1161a52c6d62de163c4 (patch) | |
| tree | d55f17ed5227c702a9c1097251769f9a03bb9ce8 /include | |
| parent | c59286bff1cca8c4fa15f390c9002db94117614e (diff) | |
| download | external_llvm-8e130b1d0d53346e05d0a1161a52c6d62de163c4.zip external_llvm-8e130b1d0d53346e05d0a1161a52c6d62de163c4.tar.gz external_llvm-8e130b1d0d53346e05d0a1161a52c6d62de163c4.tar.bz2 | |
Add support for global variables in an address space for llvm-c and ocaml.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
| -rw-r--r-- | include/llvm-c/Core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 17bd99d..bdbf3f2 100644 --- a/include/llvm-c/Core.h +++ b/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); |
