diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-05-10 15:44:40 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-05-10 15:44:40 -0700 |
| commit | c4c5020f0267758c7eb127689177cf1a70fb6d97 (patch) | |
| tree | e2acc6873952863d72d1a1e55104a3518fdefc89 /lib/std | |
| parent | 9654a54d4a2729200d38dbb6eec827cb03dc0f90 (diff) | |
| download | zig-c4c5020f0267758c7eb127689177cf1a70fb6d97.tar.gz zig-c4c5020f0267758c7eb127689177cf1a70fb6d97.zip | |
fixups to the previous commit
* Rename std.builtin.GlobalVisibility to std.builtin.SymbolVisibility
* Add missing compile error. From the LLVM language reference: "A
symbol with internal or private linkage must have default
visibility."
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/builtin.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 3b0a24d3f5..bf9a2d5682 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -70,7 +70,7 @@ 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 GlobalVisibility = enum { +pub const SymbolVisibility = enum { default, hidden, protected, @@ -663,7 +663,7 @@ pub const ExportOptions = struct { name: []const u8, linkage: GlobalLinkage = .Strong, section: ?[]const u8 = null, - visibility: GlobalVisibility = .default, + visibility: SymbolVisibility = .default, }; /// This data structure is used by the Zig language code generation and |
