diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-27 00:29:34 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-27 00:29:34 +0000 |
commit | 3c2fafa5311f159f222047699968e091a8f260d6 (patch) | |
tree | 48a53667ae73288fab5264e1decc5ab27160d445 /gold/main.cc | |
parent | *** empty log message *** (diff) | |
download | binutils-gdb-3c2fafa5311f159f222047699968e091a8f260d6.tar.gz binutils-gdb-3c2fafa5311f159f222047699968e091a8f260d6.tar.bz2 binutils-gdb-3c2fafa5311f159f222047699968e091a8f260d6.zip |
From Craig Silverstein and Ian Lance Taylor: Process --script option.
Diffstat (limited to 'gold/main.cc')
-rw-r--r-- | gold/main.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gold/main.cc b/gold/main.cc index eda586bc673..a4dcc5a42a5 100644 --- a/gold/main.cc +++ b/gold/main.cc @@ -54,6 +54,10 @@ main(int argc, char** argv) Errors errors(program_name); + // Initialize the global parameters, to let random code get to the + // errors object. + initialize_parameters(&errors); + // Handle the command line options. Command_line command_line; command_line.process(argc - 1, argv + 1); @@ -62,7 +66,8 @@ main(int argc, char** argv) if (command_line.options().print_stats()) start_time = get_run_time(); - initialize_parameters(&command_line.options(), &errors); + // Store some options in the globally accessible parameters. + set_parameters_from_options(&command_line.options()); // The work queue. Workqueue workqueue(command_line.options()); |