aboutsummaryrefslogtreecommitdiff
path: root/lib/std/builtin.zig
diff options
context:
space:
mode:
authorTadeo Kondrak <me@tadeo.ca>2021-01-11 07:59:11 -0700
committerTadeo Kondrak <me@tadeo.ca>2021-02-10 20:06:13 -0700
commit1c15091bc8d83b9464082afbdb62ecd9c9176cd6 (patch)
tree8cd175ded0ee4737d45ef5411263059622ea9e26 /lib/std/builtin.zig
parent5dfe0e7e8fabd3cfc3fdf5c7099791da98899903 (diff)
downloadzig-1c15091bc8d83b9464082afbdb62ecd9c9176cd6.tar.gz
zig-1c15091bc8d83b9464082afbdb62ecd9c9176cd6.zip
stage1: switch from inline fn to callconv(.Inline)
Diffstat (limited to 'lib/std/builtin.zig')
-rw-r--r--lib/std/builtin.zig11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
index 7163cc5357..93de8ae3b9 100644
--- a/lib/std/builtin.zig
+++ b/lib/std/builtin.zig
@@ -155,6 +155,7 @@ pub const CallingConvention = enum {
C,
Naked,
Async,
+ Inline,
Interrupt,
Signal,
Stdcall,
@@ -404,21 +405,13 @@ pub const TypeInfo = union(enum) {
/// therefore must be kept in sync with the compiler implementation.
pub const FnDecl = struct {
fn_type: type,
- inline_type: Inline,
+ is_noinline: bool,
is_var_args: bool,
is_extern: bool,
is_export: bool,
lib_name: ?[]const u8,
return_type: type,
arg_names: []const []const u8,
-
- /// This data structure is used by the Zig language code generation and
- /// therefore must be kept in sync with the compiler implementation.
- pub const Inline = enum {
- Auto,
- Always,
- Never,
- };
};
};
};