aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-05-10 22:04:30 -0400
committerGitHub <noreply@github.com>2022-05-10 22:04:30 -0400
commit458943e324e81762a9a2aa839d2fa3c851068e6f (patch)
treee806a09ac101998495d1c35947c14935923ad33a /lib/std
parented63d6c7fdbdc3c508457ca792436595dd443ac8 (diff)
parent1ff9a18cd327027164073f1ebf9c2cca6c3de876 (diff)
downloadzig-458943e324e81762a9a2aa839d2fa3c851068e6f.tar.gz
zig-458943e324e81762a9a2aa839d2fa3c851068e6f.zip
Merge pull request #9831 from mathetake/llvmvisibility
Stage1: Add Visibility field to ExportOptions.
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/builtin.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
index 8c1e38ea09..bf9a2d5682 100644
--- a/lib/std/builtin.zig
+++ b/lib/std/builtin.zig
@@ -70,6 +70,14 @@ pub const GlobalLinkage = enum {
/// This data structure is used by the Zig language code generation and
/// therefore must be kept in sync with the compiler implementation.
+pub const SymbolVisibility = enum {
+ default,
+ hidden,
+ protected,
+};
+
+/// This data structure is used by the Zig language code generation and
+/// therefore must be kept in sync with the compiler implementation.
pub const AtomicOrder = enum {
Unordered,
Monotonic,
@@ -655,6 +663,7 @@ pub const ExportOptions = struct {
name: []const u8,
linkage: GlobalLinkage = .Strong,
section: ?[]const u8 = null,
+ visibility: SymbolVisibility = .default,
};
/// This data structure is used by the Zig language code generation and