Home | History | Annotate | Download | only in lto

Lines Matching refs:file_data

153 /* Insert a splay tree node into tree T with ID as key and FILE_DATA as value.
159 struct lto_file_decl_data *file_data)
163 splay_tree_insert (t, (splay_tree_key) idp, (splay_tree_value) file_data);
898 register_resolution (struct lto_file_decl_data *file_data, tree decl,
904 if (!file_data->resolution_map)
905 file_data->resolution_map
908 = file_data->resolution_map->get_or_insert (decl, &existed);
935 register_resolution (data_in->file_data,
952 register_resolution (data_in->file_data,
2071 struct lto_file_decl_data *file_data;
2138 file_data = (struct lto_file_decl_data *)nd->value;
2143 file_data->respairs.safe_push (rp);
2144 if (file_data->max_index < index)
2145 file_data->max_index = index;
2173 /* Create file_data of each sub file id. */
2184 struct lto_file_decl_data *file_data;
2193 file_data = (struct lto_file_decl_data *)nd->value;
2197 file_data = ggc_alloc<lto_file_decl_data> ();
2198 memset(file_data, 0, sizeof (struct lto_file_decl_data));
2199 file_data->id = id;
2200 file_data->section_hash_table = lto_obj_create_section_hash_table ();
2201 lto_splay_tree_insert (file_ids, id, file_data);
2205 list->first = file_data;
2207 list->last->next = file_data;
2209 list->last = file_data;
2215 hash_slot = htab_find_slot (file_data->section_hash_table, &s_slot, INSERT);
2224 /* Read declarations and other initializations for a FILE_DATA. */
2227 lto_file_finalize (struct lto_file_decl_data *file_data, lto_file *file,
2239 resolutions.safe_grow_cleared (file_data->max_index + 1, true);
2240 for (i = 0; file_data->respairs.iterate (i, &rp); i++)
2242 file_data->respairs.release ();
2244 file_data->renaming_hash_table = lto_create_renaming_table ();
2245 file_data->file_name = file->filename;
2246 file_data->order = order;
2249 data = lto_get_summary_section_data (file_data, LTO_section_lto, &len);
2253 "with GCC compiler older than 10.0", file_data->file_name);
2257 memcpy (&file_data->lto_section_header, data, sizeof (lto_section));
2258 lto_check_version (file_data->lto_section_header.major_version,
2259 file_data->lto_section_header.minor_version,
2260 file_data->file_name);
2263 lto_input_mode_table (file_data);
2265 file_data->mode_table = lto_mode_identity_table;
2268 data = lto_get_summary_section_data (file_data, LTO_section_decls, &len);
2272 file_data->file_name);
2276 lto_read_decls (file_data, data, resolutions);
2277 lto_free_section_data (file_data, LTO_section_decls, NULL, data, len);
2280 /* Finalize FILE_DATA in FILE and increase COUNT. */
2283 lto_create_files_from_ids (lto_file *file, struct lto_file_decl_data *file_data,
2286 lto_file_finalize (file_data, file, order);
2290 file_data->file_name, file_data->id);
2305 struct lto_file_decl_data *file_data = NULL;
2339 for (file_data = file_list.first; file_data != NULL;
2340 file_data = file_data->next)
2341 lto_create_files_from_ids (file, file_data, count, order++);
2363 lto_read_section_data (struct lto_file_decl_data *file_data,
2381 && filename_cmp (fd_name, file_data->file_name) != 0)
2389 fd = open (file_data->file_name, O_RDONLY|O_BINARY);
2392 fatal_error (input_location, "Cannot open %s", file_data->file_name);
2395 fd_name = xstrdup (file_data->file_name);
2413 fatal_error (input_location, "Cannot map %s", file_data->file_name);
2424 fatal_error (input_location, "Cannot read %s", file_data->file_name);
2441 /* Get the section data from FILE_DATA of SECTION_TYPE with NAME.
2446 get_section_data (struct lto_file_decl_data *file_data,
2451 htab_t section_hash_table = file_data->section_hash_table;
2455 order, file_data);
2463 data = lto_read_section_data (file_data, f_slot->start, f_slot->len);
2472 /* Free the section data from FILE_DATA of SECTION_TYPE with NAME that
2476 free_section_data (struct lto_file_decl_data *file_data ATTRIBUTE_UNUSED,
2778 struct lto_file_decl_data *file_data = NULL;
2789 file_data = lto_file_read (current_lto_file, resolution, &count);
2790 if (!file_data)
2798 decl_data[last_file_ix++] = file_data;