diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-26 22:48:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-26 22:48:08 +0000 |
commit | a5dc07065554d074ae0452b388cd9c80b2bc6504 (patch) | |
tree | ce2d8d5be0590dbf264053db8996e684b2fd26db /gold/main.cc | |
parent | 5daa78cc6fc04e0367c11459bb2ae0531c8732ac (diff) | |
download | gdb-a5dc07065554d074ae0452b388cd9c80b2bc6504.zip gdb-a5dc07065554d074ae0452b388cd9c80b2bc6504.tar.gz gdb-a5dc07065554d074ae0452b388cd9c80b2bc6504.tar.bz2 |
From Craig Silverstein: rework handling of Script_options.
Diffstat (limited to 'gold/main.cc')
-rw-r--r-- | gold/main.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gold/main.cc b/gold/main.cc index 6e35658..678bd03 100644 --- a/gold/main.cc +++ b/gold/main.cc @@ -147,12 +147,8 @@ main(int argc, char** argv) // errors object. initialize_parameters(&errors); - // Options which may be set by the command line or by linker - // scripts. - Script_options script_options; - // Handle the command line options. - Command_line command_line(&script_options); + Command_line command_line; command_line.process(argc - 1, argv + 1); long start_time = 0; @@ -174,7 +170,7 @@ main(int argc, char** argv) // permit some linker optimizations. Perhaps we need yet another // option to control this. FIXME. if (parameters->output_is_object()) - command_line.script_options()->version_script_info()->clear(); + command_line.script_options().version_script_info()->clear(); // The work queue. Workqueue workqueue(command_line.options()); @@ -187,10 +183,10 @@ main(int argc, char** argv) // this is off, it means at worst we don't quite optimize hashtable // resizing as well as we could have (perhap using more memory). Symbol_table symtab(command_line.number_of_input_files() * 1024, - command_line.options().version_script()); + command_line.version_script()); // The layout object. - Layout layout(command_line.options(), &script_options); + Layout layout(command_line.options(), &command_line.script_options()); // Get the search path from the -L options. Dirsearch search_path; |