aboutsummaryrefslogtreecommitdiff
path: root/lib/std/builtin.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-01-06 18:53:17 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-01-06 18:53:17 -0500
commit633b6bf92055a62f8a18dbfdb1ddc4f7330bf4ec (patch)
tree3be9c09b1e6c0c3aff43fdc3d6d98948756de023 /lib/std/builtin.zig
parent4e6ad8efd9fcefb820acf4a03fc4ab9157f85c1b (diff)
parentc0e8837ce9168088e89bfeef9516d7318cd5f97d (diff)
downloadzig-633b6bf92055a62f8a18dbfdb1ddc4f7330bf4ec.tar.gz
zig-633b6bf92055a62f8a18dbfdb1ddc4f7330bf4ec.zip
Merge branch 'LemonBoy-cc-work'
Diffstat (limited to 'lib/std/builtin.zig')
-rw-r--r--lib/std/builtin.zig31
1 files changed, 19 insertions, 12 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
index 36767494e5..56414ee1b0 100644
--- a/lib/std/builtin.zig
+++ b/lib/std/builtin.zig
@@ -91,6 +91,25 @@ pub const Mode = enum {
ReleaseSmall,
};
+/// This data structure is used by the Zig language code generation and
+/// therefore must be kept in sync with the compiler implementation.
+pub const CallingConvention = enum {
+ Unspecified,
+ C,
+ Cold,
+ Naked,
+ Async,
+ Interrupt,
+ Signal,
+ Stdcall,
+ Fastcall,
+ Vectorcall,
+ Thiscall,
+ APCS,
+ AAPCS,
+ AAPCSVFP,
+};
+
pub const TypeId = @TagType(TypeInfo);
/// This data structure is used by the Zig language code generation and
@@ -255,17 +274,6 @@ pub const TypeInfo = union(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 CallingConvention = enum {
- Unspecified,
- C,
- Cold,
- Naked,
- Stdcall,
- Async,
- };
-
- /// This data structure is used by the Zig language code generation and
- /// therefore must be kept in sync with the compiler implementation.
pub const FnArg = struct {
is_generic: bool,
is_noalias: bool,
@@ -314,7 +322,6 @@ pub const TypeInfo = union(enum) {
pub const FnDecl = struct {
fn_type: type,
inline_type: Inline,
- calling_convention: CallingConvention,
is_var_args: bool,
is_extern: bool,
is_export: bool,