From 44063a62fa6ebad04d48a7d1bcddf778fea5ee3a Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sat, 4 Oct 2025 10:15:17 -0400 Subject: [PATCH] Update c++ codegen --- codegen/ast_kinds.hpp | 1 + codegen/type_kinds.hpp | 14 +++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/codegen/ast_kinds.hpp b/codegen/ast_kinds.hpp index 333f6b31a..25d38ef30 100644 --- a/codegen/ast_kinds.hpp +++ b/codegen/ast_kinds.hpp @@ -14,6 +14,7 @@ char const* desc_Ident = "identifier"; struct Ident { Token token; Entity *entity; + u32 hash; }; char const* desc_Implicit = "implicit"; diff --git a/codegen/type_kinds.hpp b/codegen/type_kinds.hpp index adcc71202..6b8e638ac 100644 --- a/codegen/type_kinds.hpp +++ b/codegen/type_kinds.hpp @@ -5,11 +5,15 @@ These are not to be used directly. They are parsed by gen_src.cpp typedef BasicType Basic; -struct Named { - String name; - Type *base; - Entity *type_name; /* Entity_TypeName */ -}; +typedef TypeNamed Named; +// struct Named { +// String name; +// Type *base; +// Entity *type_name; /* Entity_TypeName */ + +// BlockingMutex gen_types_data_mutex; +// GenTypesData *gen_types_data; +// }; struct Generic { i64 id;