INTERNAL USE ONLY: //+lazy build flag

This commit is contained in:
gingerBill
2021-07-25 13:06:09 +01:00
parent 92f3567ee6
commit 99080d41f3
8 changed files with 191 additions and 74 deletions

View File

@@ -66,6 +66,8 @@ enum EntityFlag : u64 {
EntityFlag_Disabled = 1ull<<24,
EntityFlag_Cold = 1ull<<25, // procedure is rarely called
EntityFlag_Lazy = 1ull<<26, // Lazily type checked
EntityFlag_Test = 1ull<<30,
EntityFlag_Overridden = 1ull<<63,
@@ -132,7 +134,7 @@ struct Entity {
lbModule * code_gen_module;
lbProcedure *code_gen_procedure;
isize order_in_src;
u64 order_in_src;
String deprecated_message;
// IMPORTANT NOTE(bill): This must be a discriminated union because of patching
@@ -225,7 +227,7 @@ bool is_entity_exported(Entity *e, bool allow_builtin = false) {
if (e->flags & EntityFlag_NotExported) {
return false;
}
if (e->file != nullptr && e->file->is_private) {
if (e->file != nullptr && (e->file->flags & AstFile_IsPrivate) != 0) {
return false;
}