mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-04 22:15:12 +08:00
Remove plugin_active_plugins_p()
Replace plugin_active_plugins_p() with link_info.lto_plugin_active. * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p() with link_info.lto_plugin_active. * ldlang.c (lang_process): Likewise. * ldmain.c (add_archive_element): Likewise. * plugin.c (plugin_active_plugins_p): Removed. * plugin.h (plugin_active_plugins_p): Likewise.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
|
||||||
|
with link_info.lto_plugin_active.
|
||||||
|
* ldlang.c (lang_process): Likewise.
|
||||||
|
* ldmain.c (add_archive_element): Likewise.
|
||||||
|
* plugin.c (plugin_active_plugins_p): Removed.
|
||||||
|
* plugin.h (plugin_active_plugins_p): Likewise.
|
||||||
|
|
||||||
2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
|
2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
|
* plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
|
||||||
|
@ -302,7 +302,7 @@ success:
|
|||||||
will be needed when and if we want to bfd_create a new
|
will be needed when and if we want to bfd_create a new
|
||||||
one using this one as a template. */
|
one using this one as a template. */
|
||||||
if (bfd_check_format (entry->the_bfd, bfd_object)
|
if (bfd_check_format (entry->the_bfd, bfd_object)
|
||||||
&& plugin_active_plugins_p ()
|
&& link_info.lto_plugin_active
|
||||||
&& !no_more_claiming)
|
&& !no_more_claiming)
|
||||||
{
|
{
|
||||||
int fd = open (attempt, O_RDONLY | O_BINARY);
|
int fd = open (attempt, O_RDONLY | O_BINARY);
|
||||||
|
@ -6624,7 +6624,7 @@ lang_process (void)
|
|||||||
open_input_bfds (statement_list.head, OPEN_BFD_NORMAL);
|
open_input_bfds (statement_list.head, OPEN_BFD_NORMAL);
|
||||||
|
|
||||||
#ifdef ENABLE_PLUGINS
|
#ifdef ENABLE_PLUGINS
|
||||||
if (plugin_active_plugins_p ())
|
if (link_info.lto_plugin_active)
|
||||||
{
|
{
|
||||||
lang_statement_list_type added;
|
lang_statement_list_type added;
|
||||||
lang_statement_list_type files, inputfiles;
|
lang_statement_list_type files, inputfiles;
|
||||||
|
@ -790,7 +790,7 @@ add_archive_element (struct bfd_link_info *info,
|
|||||||
BFD, but we still want to output the original BFD filename. */
|
BFD, but we still want to output the original BFD filename. */
|
||||||
orig_input = *input;
|
orig_input = *input;
|
||||||
#ifdef ENABLE_PLUGINS
|
#ifdef ENABLE_PLUGINS
|
||||||
if (plugin_active_plugins_p () && !no_more_claiming)
|
if (link_info.lto_plugin_active && !no_more_claiming)
|
||||||
{
|
{
|
||||||
/* We must offer this archive member to the plugins to claim. */
|
/* We must offer this archive member to the plugins to claim. */
|
||||||
const char *filename = (bfd_my_archive (abfd) != NULL
|
const char *filename = (bfd_my_archive (abfd) != NULL
|
||||||
|
@ -791,14 +791,6 @@ set_tv_plugin_args (plugin_t *plugin, struct ld_plugin_tv *tv)
|
|||||||
tv->tv_u.tv_val = 0;
|
tv->tv_u.tv_val = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return true if any plugins are active this run. Only valid
|
|
||||||
after options have been processed. */
|
|
||||||
bfd_boolean
|
|
||||||
plugin_active_plugins_p (void)
|
|
||||||
{
|
|
||||||
return plugins_list != NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Load up and initialise all plugins after argument parsing. */
|
/* Load up and initialise all plugins after argument parsing. */
|
||||||
void
|
void
|
||||||
plugin_load_plugins (void)
|
plugin_load_plugins (void)
|
||||||
|
@ -39,10 +39,6 @@ extern void plugin_opt_plugin (const char *plugin);
|
|||||||
error if none. */
|
error if none. */
|
||||||
extern int plugin_opt_plugin_arg (const char *arg);
|
extern int plugin_opt_plugin_arg (const char *arg);
|
||||||
|
|
||||||
/* Return true if any plugins are active this run. Only valid
|
|
||||||
after options have been processed. */
|
|
||||||
extern bfd_boolean plugin_active_plugins_p (void);
|
|
||||||
|
|
||||||
/* Load up and initialise all plugins after argument parsing. */
|
/* Load up and initialise all plugins after argument parsing. */
|
||||||
extern void plugin_load_plugins (void);
|
extern void plugin_load_plugins (void);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user