compiler: improve target features support

This commit is contained in:
Laytan Laats
2024-05-01 22:12:37 +02:00
parent ff0973e0f5
commit 25f1d0906d
19 changed files with 1067 additions and 205 deletions

View File

@@ -252,10 +252,8 @@ struct Entity {
bool is_foreign : 1;
bool is_export : 1;
bool generated_from_polymorphic : 1;
bool target_feature_disabled : 1;
bool entry_point_only : 1;
bool has_instrumentation : 1;
String target_feature;
} Procedure;
struct {
Array<Entity *> entities;
@@ -502,4 +500,4 @@ gb_internal bool is_entity_local_variable(Entity *e) {
return ((e->scope->flags &~ ScopeFlag_ContextDefined) == 0) ||
(e->scope->flags & ScopeFlag_Proc) != 0;
}
}