aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-07-14 11:58:18 +0100
committergingerBill <bill@gingerbill.org>2023-07-14 11:58:18 +0100
commit7cd2d14b6410a17783020cea390f2be9534fa432 (patch)
tree27cc6c71036a2c7e9f907a9f99038c7938a7a89b /src/entity.cpp
parentfc5abfd68b3b4fb079fe61d72ad2b10cf24df455 (diff)
Very start of working on Tilde Backend for Odin
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 649dd900d..c943863fc 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -2,8 +2,6 @@ struct Scope;
struct Checker;
struct Type;
struct DeclInfo;
-struct lbModule;
-struct lbProcedure;
#define ENTITY_KINDS \
@@ -183,8 +181,14 @@ struct Entity {
Entity * aliased_of;
- lbModule * code_gen_module;
- lbProcedure *code_gen_procedure;
+ union {
+ struct lbModule *code_gen_module;
+ struct cgModule *cg_module;
+ };
+ union {
+ struct lbProcedure *code_gen_procedure;
+ struct cgProcedure *cg_procedure;
+ };
u64 order_in_src;
String deprecated_message;