aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm/bindings.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-08-19 20:26:46 -0400
committerGitHub <noreply@github.com>2022-08-19 20:26:46 -0400
commite5e6eb983159df0a089e7d1c8efcea9006e253a9 (patch)
tree80611a8b7faca0d150bcb66c4d8403134a339a49 /src/codegen/llvm/bindings.zig
parent39f43fea8d0f6aa1c69cb7c3209f57f5ce00b273 (diff)
parentb75eeae5951f2dc4ff19f795ebd856c134722375 (diff)
downloadzig-e5e6eb983159df0a089e7d1c8efcea9006e253a9.tar.gz
zig-e5e6eb983159df0a089e7d1c8efcea9006e253a9.zip
Merge pull request #12368 from ziglang/stage3-default
make self-hosted the default compiler
Diffstat (limited to 'src/codegen/llvm/bindings.zig')
-rw-r--r--src/codegen/llvm/bindings.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/codegen/llvm/bindings.zig b/src/codegen/llvm/bindings.zig
index 9daa96eb8f..38f794cfda 100644
--- a/src/codegen/llvm/bindings.zig
+++ b/src/codegen/llvm/bindings.zig
@@ -223,6 +223,9 @@ pub const Value = opaque {
pub const setInitializer = LLVMSetInitializer;
extern fn LLVMSetInitializer(GlobalVar: *const Value, ConstantVal: *const Value) void;
+ pub const setDLLStorageClass = LLVMSetDLLStorageClass;
+ extern fn LLVMSetDLLStorageClass(Global: *const Value, Class: DLLStorageClass) void;
+
pub const addCase = LLVMAddCase;
extern fn LLVMAddCase(Switch: *const Value, OnVal: *const Value, Dest: *const BasicBlock) void;
@@ -1482,6 +1485,12 @@ pub const CallAttr = enum(c_int) {
AlwaysInline,
};
+pub const DLLStorageClass = enum(c_uint) {
+ Default,
+ DLLImport,
+ DLLExport,
+};
+
pub const address_space = struct {
pub const default: c_uint = 0;