+2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR lto/64837
+ * lto-plugin.c (release_input_file): New.
+ (claim_file_handler): Call release_input_file.
+ (onload): Set release_input_file.
+
2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
* lto-plugin.c (offload_files, num_offload_files): New static variables.
static ld_plugin_get_symbols get_symbols, get_symbols_v2;
static ld_plugin_register_cleanup register_cleanup;
static ld_plugin_add_input_file add_input_file;
+static ld_plugin_release_input_file release_input_file;
static ld_plugin_add_input_library add_input_library;
static ld_plugin_message message;
static ld_plugin_add_symbols add_symbols;
if (obj.objfile)
simple_object_release_read (obj.objfile);
+ release_input_file (file);
+
return LDPS_OK;
}
case LDPT_ADD_INPUT_FILE:
add_input_file = p->tv_u.tv_add_input_file;
break;
+ case LDPT_RELEASE_INPUT_FILE:
+ release_input_file = p->tv_u.tv_release_input_file;
+ break;
case LDPT_ADD_INPUT_LIBRARY:
add_input_library = p->tv_u.tv_add_input_library;
break;