aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAlexandros Naskos <alex_naskos@hotmail.com>2018-04-29 15:40:26 +0300
committerAlexandros Naskos <alex_naskos@hotmail.com>2018-04-29 15:40:26 +0300
commit013f548202ae1ffb584c211a0ea2cea53b745583 (patch)
tree6a5844ea22b0078f1ccc41c4f5176886d0f54c7c /src/codegen.cpp
parent66aa760f83529cf932d35090adfa6fb84264ff7a (diff)
downloadzig-013f548202ae1ffb584c211a0ea2cea53b745583.tar.gz
zig-013f548202ae1ffb584c211a0ea2cea53b745583.zip
Finished FnDef TypeInfo generation (warning: may be buggy).
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 507b9afe8b..db69708e9a 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -6491,12 +6491,12 @@ static void define_builtin_compile_vars(CodeGen *g) {
" is_pub: bool,\n"
" data: Data,\n"
"\n"
- " const Data = union(enum) {\n"
+ " pub const Data = union(enum) {\n"
" Type: type,\n"
" Var: type,\n"
" Fn: FnDef,\n"
"\n"
- " const FnDef = struct {\n"
+ " pub const FnDef = struct {\n"
" fn_type: type,\n"
" inline_type: Inline,\n"
" calling_convention: CallingConvention,\n"
@@ -6504,8 +6504,10 @@ static void define_builtin_compile_vars(CodeGen *g) {
" is_extern: bool,\n"
" is_export: bool,\n"
" lib_name: ?[]const u8,\n"
+ " return_type: type,\n"
+ " arg_names: [][] const u8,\n"
"\n"
- " const Inline = enum {\n"
+ " pub const Inline = enum {\n"
" Auto,\n"
" Always,\n"
" Never,\n"