summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/Core.h
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
commit2fae26fa2c03437e74088f3a682ddec42ee01fcb (patch)
tree3b104b1cabfc55ccd9b2c873034b40779e43dd0a /llvm/include/llvm-c/Core.h
parent7c84d1d3f70703a8e438db1ffd139b40c48837c8 (diff)
downloadbcm5719-llvm-2fae26fa2c03437e74088f3a682ddec42ee01fcb.tar.gz
bcm5719-llvm-2fae26fa2c03437e74088f3a682ddec42ee01fcb.zip
C API: Add functions to get or set a GlobalValue's DLLStorageClass
Patch by Manuel Jacob! llvm-svn: 202928
Diffstat (limited to 'llvm/include/llvm-c/Core.h')
-rw-r--r--llvm/include/llvm-c/Core.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index a84a0313211..af1e01d8e1b 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/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
OpenPOWER on IntegriCloud