From e229885b2bd3b9b017f88d19a773bf989251ad51 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 1 Dec 2019 19:11:00 +0000 Subject: Remove addressing mode `Addressing_Immutable` --- src/ir.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index 0051404e9..78fe6519a 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -1476,7 +1476,7 @@ irValue *ir_generate_array(irModule *m, Type *elem_type, i64 count, String prefi String s = make_string_c(text); - Entity *e = alloc_entity_variable(nullptr, make_token_ident(s), alloc_type_array(elem_type, count), false); + Entity *e = alloc_entity_variable(nullptr, make_token_ident(s), alloc_type_array(elem_type, count)); irValue *value = ir_value_global(e, nullptr); value->Global.is_private = true; ir_module_add_value(m, e, value); @@ -1743,7 +1743,7 @@ irValue *ir_add_local_generated(irProcedure *proc, Type *type, bool zero_initial if (proc->curr_block) { scope = proc->curr_block->scope; } - Entity *e = alloc_entity_variable(scope, empty_token, type, false); + Entity *e = alloc_entity_variable(scope, empty_token, type); return ir_add_local(proc, e, nullptr, zero_initialized); } @@ -1759,7 +1759,7 @@ irValue *ir_add_global_generated(irModule *m, Type *type, irValue *value) { String name = make_string(str, len-1); Scope *scope = nullptr; - Entity *e = alloc_entity_variable(scope, make_token_ident(name), type, false); + Entity *e = alloc_entity_variable(scope, make_token_ident(name), type); irValue *g = ir_value_global(e, value); ir_module_add_value(m, e, g); map_set(&m->members, hash_string(name), g); @@ -10562,7 +10562,7 @@ void ir_init_module(irModule *m, Checker *c) { isize max_type_info_count = ir_type_info_count(m->info); String name = str_lit(IR_TYPE_INFO_DATA_NAME); - Entity *e = alloc_entity_variable(nullptr, make_token_ident(name), alloc_type_array(t_type_info, max_type_info_count), false); + Entity *e = alloc_entity_variable(nullptr, make_token_ident(name), alloc_type_array(t_type_info, max_type_info_count)); irValue *g = ir_value_global(e, nullptr); g->Global.is_private = true; ir_module_add_value(m, e, g); @@ -10600,7 +10600,7 @@ void ir_init_module(irModule *m, Checker *c) { { String name = str_lit(IR_TYPE_INFO_TYPES_NAME); Entity *e = alloc_entity_variable(nullptr, make_token_ident(name), - alloc_type_array(t_type_info_ptr, count), false); + alloc_type_array(t_type_info_ptr, count)); irValue *g = ir_value_global(e, nullptr); ir_module_add_value(m, e, g); map_set(&m->members, hash_string(name), g); @@ -10609,7 +10609,7 @@ void ir_init_module(irModule *m, Checker *c) { { String name = str_lit(IR_TYPE_INFO_NAMES_NAME); Entity *e = alloc_entity_variable(nullptr, make_token_ident(name), - alloc_type_array(t_string, count), false); + alloc_type_array(t_string, count)); irValue *g = ir_value_global(e, nullptr); ir_module_add_value(m, e, g); map_set(&m->members, hash_string(name), g); @@ -10618,7 +10618,7 @@ void ir_init_module(irModule *m, Checker *c) { { String name = str_lit(IR_TYPE_INFO_OFFSETS_NAME); Entity *e = alloc_entity_variable(nullptr, make_token_ident(name), - alloc_type_array(t_uintptr, count), false); + alloc_type_array(t_uintptr, count)); irValue *g = ir_value_global(e, nullptr); ir_module_add_value(m, e, g); map_set(&m->members, hash_string(name), g); @@ -10628,7 +10628,7 @@ void ir_init_module(irModule *m, Checker *c) { { String name = str_lit(IR_TYPE_INFO_USINGS_NAME); Entity *e = alloc_entity_variable(nullptr, make_token_ident(name), - alloc_type_array(t_bool, count), false); + alloc_type_array(t_bool, count)); irValue *g = ir_value_global(e, nullptr); ir_module_add_value(m, e, g); map_set(&m->members, hash_string(name), g); @@ -10638,7 +10638,7 @@ void ir_init_module(irModule *m, Checker *c) { { String name = str_lit(IR_TYPE_INFO_TAGS_NAME); Entity *e = alloc_entity_variable(nullptr, make_token_ident(name), - alloc_type_array(t_string, count), false); + alloc_type_array(t_string, count)); irValue *g = ir_value_global(e, nullptr); ir_module_add_value(m, e, g); map_set(&m->members, hash_string(name), g); -- cgit v1.2.3