aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAlexandros Naskos <alex_naskos@hotmail.com>2018-04-26 16:41:59 +0300
committerAlexandros Naskos <alex_naskos@hotmail.com>2018-04-26 16:41:59 +0300
commitf5977f68ebe344ec9c96507322218b87c24804a1 (patch)
treeeadcc1a910b40666126cb84cd43aae48e5973fad /src/codegen.cpp
parent7a91e4736a4151bd41b65b6e3b395cc51c443162 (diff)
downloadzig-f5977f68ebe344ec9c96507322218b87c24804a1.tar.gz
zig-f5977f68ebe344ec9c96507322218b87c24804a1.zip
Added Enum TypeInfo except for methods
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index a8c32044fc..9c4e5b1555 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -6412,7 +6412,7 @@ static void define_builtin_compile_vars(CodeGen *g) {
" pub const StructField = struct {\n"
" name: []const u8,\n"
" offset: usize,\n"
- " type_info: TypeInfo,\n"
+ " type_info: &TypeInfo,\n"
" };\n"
"\n"
" pub const Struct = struct {\n"
@@ -6446,7 +6446,7 @@ static void define_builtin_compile_vars(CodeGen *g) {
"\n"
" pub const Enum = struct {\n"
" layout: ContainerLayout,\n"
- " tag_type: Int,\n"
+ " tag_type: &Int,\n"
" fields: []EnumField,\n"
" methods: []Method,\n"
" };\n"
@@ -6454,7 +6454,7 @@ static void define_builtin_compile_vars(CodeGen *g) {
" pub const UnionField = struct {\n"
" name: []const u8,\n"
" enum_field: EnumField,\n"
- " type_info: TypeInfo,\n"
+ " type_info: &TypeInfo,\n"
" };\n"
"\n"
" pub const Union = struct {\n"
@@ -6476,7 +6476,7 @@ static void define_builtin_compile_vars(CodeGen *g) {
" pub const FnArg = struct {\n"
" is_comptime: bool,\n"
" name: []const u8,\n"
- " type_info: TypeInfo,\n"
+ " type_info: &TypeInfo,\n"
" };\n"
"\n"
" pub const Fn = struct {\n"