mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 15:44:04 +00:00
Split header table data and the map pointer
This commit is contained in:
@@ -2831,23 +2831,12 @@ void init_core_source_code_location(Checker *c) {
|
||||
}
|
||||
|
||||
void init_core_map_type(Checker *c) {
|
||||
if (t_map_hash == nullptr) {
|
||||
Entity *e = find_core_entity(c, str_lit("Map_Hash"));
|
||||
if (e->state == EntityState_Unresolved) {
|
||||
check_entity_decl(&c->builtin_ctx, e, nullptr, nullptr);
|
||||
}
|
||||
t_map_hash = e->type;
|
||||
GB_ASSERT(t_map_hash != nullptr);
|
||||
}
|
||||
|
||||
if (t_map_header == nullptr) {
|
||||
Entity *e = find_core_entity(c, str_lit("Map_Header"));
|
||||
if (e->state == EntityState_Unresolved) {
|
||||
check_entity_decl(&c->builtin_ctx, e, nullptr, nullptr);
|
||||
}
|
||||
t_map_header = e->type;
|
||||
GB_ASSERT(t_map_header != nullptr);
|
||||
if (t_map_hash != nullptr) {
|
||||
return;
|
||||
}
|
||||
t_map_hash = find_core_type(c, str_lit("Map_Hash"));
|
||||
t_map_header = find_core_type(c, str_lit("Map_Header"));
|
||||
t_map_header_table = find_core_type(c, str_lit("Map_Header_Table"));
|
||||
}
|
||||
|
||||
void init_preload(Checker *c) {
|
||||
|
||||
Reference in New Issue
Block a user