summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-03-05 02:34:23 +0000
committerReid Kleckner <reid@kleckner.net>2014-03-05 02:34:23 +0000
commit1372b786798f5be7497644bcfc3d8ecdd685e6d9 (patch)
treed6eb6e7dd4d70532d1492768fabe3ff33e04cc35 /include
parentd6e0bca951b598bc98f5cf5f89a20214da3703ea (diff)
downloadllvm-1372b786798f5be7497644bcfc3d8ecdd685e6d9.tar.gz
llvm-1372b786798f5be7497644bcfc3d8ecdd685e6d9.tar.bz2
llvm-1372b786798f5be7497644bcfc3d8ecdd685e6d9.tar.xz
C API: Add functions to get or set a GlobalValue's DLLStorageClass
Patch by Manuel Jacob! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm-c/Core.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h
index a84a031321..af1e01d8e1 100644
--- a/include/llvm-c/Core.h
+++ b/include/llvm-c/Core.h
@@ -300,6 +300,12 @@ typedef enum {
} LLVMVisibility;
typedef enum {
+ LLVMDefaultStorageClass = 0,
+ LLVMDLLImportStorageClass = 1, /**< Function to be imported from DLL. */
+ LLVMDLLExportStorageClass = 2 /**< Function to be accessible from DLL. */
+} LLVMDLLStorageClass;
+
+typedef enum {
LLVMCCallConv = 0,
LLVMFastCallConv = 8,
LLVMColdCallConv = 9,
@@ -1689,6 +1695,8 @@ const char *LLVMGetSection(LLVMValueRef Global);
void LLVMSetSection(LLVMValueRef Global, const char *Section);
LLVMVisibility LLVMGetVisibility(LLVMValueRef Global);
void LLVMSetVisibility(LLVMValueRef Global, LLVMVisibility Viz);
+LLVMDLLStorageClass LLVMGetDLLStorageClass(LLVMValueRef Global);
+void LLVMSetDLLStorageClass(LLVMValueRef Global, LLVMDLLStorageClass Class);
/**
* @defgroup LLVMCCoreValueWithAlignment Values with alignment