Lines Matching refs:file_data

159 		       struct lto_file_decl_data *file_data)  in lto_splay_tree_insert()  argument
163 splay_tree_insert (t, (splay_tree_key) idp, (splay_tree_value) file_data); in lto_splay_tree_insert()
897 register_resolution (struct lto_file_decl_data *file_data, tree decl, in register_resolution() argument
903 if (!file_data->resolution_map) in register_resolution()
904 file_data->resolution_map in register_resolution()
907 = file_data->resolution_map->get_or_insert (decl, &existed); in register_resolution()
934 register_resolution (data_in->file_data, in lto_register_var_decl_in_symtab()
951 register_resolution (data_in->file_data, in lto_register_function_decl_in_symtab()
2062 struct lto_file_decl_data *file_data; in lto_resolution_read() local
2129 file_data = (struct lto_file_decl_data *)nd->value; in lto_resolution_read()
2134 file_data->respairs.safe_push (rp); in lto_resolution_read()
2135 if (file_data->max_index < index) in lto_resolution_read()
2136 file_data->max_index = index; in lto_resolution_read()
2175 struct lto_file_decl_data *file_data; in create_subid_section_table() local
2184 file_data = (struct lto_file_decl_data *)nd->value; in create_subid_section_table()
2188 file_data = ggc_alloc<lto_file_decl_data> (); in create_subid_section_table()
2189 memset(file_data, 0, sizeof (struct lto_file_decl_data)); in create_subid_section_table()
2190 file_data->id = id; in create_subid_section_table()
2191 file_data->section_hash_table = lto_obj_create_section_hash_table (); in create_subid_section_table()
2192 lto_splay_tree_insert (file_ids, id, file_data); in create_subid_section_table()
2196 list->first = file_data; in create_subid_section_table()
2198 list->last->next = file_data; in create_subid_section_table()
2200 list->last = file_data; in create_subid_section_table()
2206 hash_slot = htab_find_slot (file_data->section_hash_table, &s_slot, INSERT); in create_subid_section_table()
2218 lto_file_finalize (struct lto_file_decl_data *file_data, lto_file *file, in lto_file_finalize() argument
2230 resolutions.safe_grow_cleared (file_data->max_index + 1); in lto_file_finalize()
2231 for (i = 0; file_data->respairs.iterate (i, &rp); i++) in lto_file_finalize()
2233 file_data->respairs.release (); in lto_file_finalize()
2235 file_data->renaming_hash_table = lto_create_renaming_table (); in lto_file_finalize()
2236 file_data->file_name = file->filename; in lto_file_finalize()
2237 file_data->order = order; in lto_file_finalize()
2240 data = lto_get_summary_section_data (file_data, LTO_section_lto, &len); in lto_file_finalize()
2244 "with GCC compiler older than 10.0", file_data->file_name); in lto_file_finalize()
2248 memcpy (&file_data->lto_section_header, data, sizeof (lto_section)); in lto_file_finalize()
2249 lto_check_version (file_data->lto_section_header.major_version, in lto_file_finalize()
2250 file_data->lto_section_header.minor_version, in lto_file_finalize()
2251 file_data->file_name); in lto_file_finalize()
2254 lto_input_mode_table (file_data); in lto_file_finalize()
2256 file_data->mode_table = lto_mode_identity_table; in lto_file_finalize()
2259 data = lto_get_summary_section_data (file_data, LTO_section_decls, &len); in lto_file_finalize()
2263 file_data->file_name); in lto_file_finalize()
2267 lto_read_decls (file_data, data, resolutions); in lto_file_finalize()
2268 lto_free_section_data (file_data, LTO_section_decls, NULL, data, len); in lto_file_finalize()
2274 lto_create_files_from_ids (lto_file *file, struct lto_file_decl_data *file_data, in lto_create_files_from_ids() argument
2277 lto_file_finalize (file_data, file, order); in lto_create_files_from_ids()
2281 file_data->file_name, file_data->id); in lto_create_files_from_ids()
2296 struct lto_file_decl_data *file_data = NULL; in lto_file_read() local
2330 for (file_data = file_list.first; file_data != NULL; in lto_file_read()
2331 file_data = file_data->next) in lto_file_read()
2332 lto_create_files_from_ids (file, file_data, count, order++); in lto_file_read()
2354 lto_read_section_data (struct lto_file_decl_data *file_data, in lto_read_section_data() argument
2372 && filename_cmp (fd_name, file_data->file_name) != 0) in lto_read_section_data()
2380 fd = open (file_data->file_name, O_RDONLY|O_BINARY); in lto_read_section_data()
2383 fatal_error (input_location, "Cannot open %s", file_data->file_name); in lto_read_section_data()
2386 fd_name = xstrdup (file_data->file_name); in lto_read_section_data()
2404 fatal_error (input_location, "Cannot map %s", file_data->file_name); in lto_read_section_data()
2415 fatal_error (input_location, "Cannot read %s", file_data->file_name); in lto_read_section_data()
2437 get_section_data (struct lto_file_decl_data *file_data, in get_section_data() argument
2442 htab_t section_hash_table = file_data->section_hash_table; in get_section_data()
2446 order, file_data); in get_section_data()
2454 data = lto_read_section_data (file_data, f_slot->start, f_slot->len); in get_section_data()
2467 free_section_data (struct lto_file_decl_data *file_data ATTRIBUTE_UNUSED, in free_section_data()
2773 struct lto_file_decl_data *file_data = NULL; in read_cgraph_and_symbols() local
2784 file_data = lto_file_read (current_lto_file, resolution, &count); in read_cgraph_and_symbols()
2785 if (!file_data) in read_cgraph_and_symbols()
2793 decl_data[last_file_ix++] = file_data; in read_cgraph_and_symbols()