method, NULL);
set_entity_compiler_generated(ptr, 1);
- set_entity_variability(ptr, variability_constant);
+ set_entity_linkage(ptr, IR_LINKAGE_CONSTANT);
set_atomic_ent_value(ptr, val);
}
for (i = 0; i < len; ++i) {
tarval_string[i] = new_tarval_from_long(fname[i], mode_Bs);
}
- set_entity_variability(ent, variability_constant);
+ set_entity_linkage(ent, IR_LINKAGE_CONSTANT);
set_array_entity_values(ent, tarval_string, len);
} else {
ent = entry->value;
cur_ident = IDENT("__FIRMPROF__BLOCK_IDS");
bblock_id = new_entity(gtp, cur_ident, array_type);
set_entity_ld_ident(bblock_id, cur_ident);
- set_entity_variability(bblock_id, variability_initialized);
cur_ident = IDENT("__FIRMPROF__BLOCK_COUNTS");
bblock_counts = new_entity(gtp, cur_ident, array_type);
set_entity_ld_ident(bblock_counts, cur_ident);
- set_entity_variability(bblock_counts, variability_initialized);
cur_ident = IDENT("__FIRMPROF__FILE_NAME");
ent_filename = new_entity(gtp, cur_ident, string_type);
for (i = 0; i < filename_len; ++i) {
tarval_string[i] = new_tarval_from_long(filename[i], mode_Bs);
}
- set_entity_variability(ent_filename, variability_constant);
+ set_entity_linkage(ent_filename, IR_LINKAGE_CONSTANT);
set_array_entity_values(ent_filename, tarval_string, filename_len);
/* initialize block id array and instrument blocks */
rem = current_ir_graph;
current_ir_graph = get_const_code_irg();
ent = get_array_element_entity(loc_type);
- set_entity_variability(ent_locations, variability_constant);
+ set_entity_linkage(ent_locations, IR_LINKAGE_CONSTANT);
for (i = 0; i < n_blocks; ++i) {
compound_graph_path *path;
tarval *tv;