if (!used_as_abstract_origin && DECL_INITIAL (decl))
DECL_INITIAL (decl) = error_mark_node;
release_function_body (decl);
- if (lto_file_data)
- {
- lto_free_function_in_decl_state_for_node (this);
- lto_file_data = NULL;
- }
+ lto_free_function_in_decl_state_for_node (this);
if (flag_checking && clones)
{
/* It is invalid to release body before materializing clones except
release_body ();
}
else
- {
- lto_free_function_in_decl_state_for_node (this);
- lto_file_data = NULL;
- }
+ lto_free_function_in_decl_state_for_node (this);
decl = NULL;
if (call_site_hash)
lto_free_function_in_decl_state (*slot);
node->lto_file_data->function_decl_states->clear_slot (slot);
}
- node->lto_file_data = NULL;
}
else
{
DECL_INITIAL (e->decl) = error_mark_node;
- if (e->lto_file_data)
- {
- lto_free_function_in_decl_state_for_node (e);
- e->lto_file_data = NULL;
- }
+ lto_free_function_in_decl_state_for_node (e);
symtab->call_varpool_removal_hooks (dyn_cast<varpool_node *> (e));
}
e->remove_all_references ();
varpool_node::remove (void)
{
symtab->call_varpool_removal_hooks (this);
- if (lto_file_data)
- {
- lto_free_function_in_decl_state_for_node (this);
- lto_file_data = NULL;
- }
+ lto_free_function_in_decl_state_for_node (this);
/* When streaming we can have multiple nodes associated with decl. */
if (symtab->state == LTO_STREAMING)