diff options
author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2010-06-18 16:53:23 +0000 |
---|---|---|
committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2010-06-18 16:53:23 +0000 |
commit | 6508b958ffb3afc176ac6b978e15baafbc85e4ab (patch) | |
tree | fe5a43086f4b09beb6d58cf07148a8cbca499b87 /gold/plugin.cc | |
parent | e075690553ca54b3ad15e9ebc643cdc879c341a9 (diff) | |
download | fsf-binutils-gdb-6508b958ffb3afc176ac6b978e15baafbc85e4ab.zip fsf-binutils-gdb-6508b958ffb3afc176ac6b978e15baafbc85e4ab.tar.gz fsf-binutils-gdb-6508b958ffb3afc176ac6b978e15baafbc85e4ab.tar.bz2 |
2010-06-18 Rafael Espindola <espindola@google.com>
* plugin.h (ld_plugin_add_input_file, ld_plugin_add_input_library):
Make argument const.
2010-06-18 Rafael Espindola <espindola@google.com>
* plugin.cc (add_input_file,add_input_library)
(Plugin_manager::add_input_file): Make filename arguments const.
* plugin.h (Plugin_manager::add_input_file): Make filename arguments
const.
Diffstat (limited to 'gold/plugin.cc')
-rw-r--r-- | gold/plugin.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gold/plugin.cc b/gold/plugin.cc index 4cf2f6a..1c33b12 100644 --- a/gold/plugin.cc +++ b/gold/plugin.cc @@ -75,10 +75,10 @@ static enum ld_plugin_status get_symbols(const void *handle, int nsyms, struct ld_plugin_symbol *syms); static enum ld_plugin_status -add_input_file(char *pathname); +add_input_file(const char *pathname); static enum ld_plugin_status -add_input_library(char *pathname); +add_input_library(const char *pathname); static enum ld_plugin_status message(int level, const char *format, ...); @@ -421,7 +421,7 @@ Plugin_manager::release_input_file(unsigned int handle) // Add a new input file. ld_plugin_status -Plugin_manager::add_input_file(char *pathname, bool is_lib) +Plugin_manager::add_input_file(const char *pathname, bool is_lib) { Input_file_argument file(pathname, (is_lib @@ -1023,7 +1023,7 @@ get_symbols(const void * handle, int nsyms, ld_plugin_symbol* syms) // Add a new (real) input file generated by a plugin. static enum ld_plugin_status -add_input_file(char *pathname) +add_input_file(const char *pathname) { gold_assert(parameters->options().has_plugins()); return parameters->options().plugins()->add_input_file(pathname, false); @@ -1032,7 +1032,7 @@ add_input_file(char *pathname) // Add a new (real) library required by a plugin. static enum ld_plugin_status -add_input_library(char *pathname) +add_input_library(const char *pathname) { gold_assert(parameters->options().has_plugins()); return parameters->options().plugins()->add_input_file(pathname, true); |