Workqueue* workqueue, Input_objects* input_objects,
Symbol_table* symtab, Layout* layout)
{
+ if (cmdline.begin() == cmdline.end())
+ gold_fatal(_("no input files"));
+
int thread_count = options.thread_count_initial();
if (thread_count == 0)
- {
- thread_count = cmdline.number_of_input_files();
- if (thread_count == 0)
- thread_count = 1;
- }
+ thread_count = cmdline.number_of_input_files();
workqueue->set_thread_count(thread_count);
- if (cmdline.begin() == cmdline.end())
- gold_fatal(_("no input files"));
-
// Read the input files. We have to add the symbols to the symbol
// table in order. We do this by creating a separate blocker for
// each input file. We associate the blocker with the following
int thread_count = options.thread_count_middle();
if (thread_count == 0)
- {
- thread_count = input_objects->number_of_input_objects();
- if (thread_count == 0)
- thread_count = 1;
- }
+ thread_count = input_objects->number_of_input_objects();
workqueue->set_thread_count(thread_count);
// Now we have seen all the input files.
{
int thread_count = options.thread_count_final();
if (thread_count == 0)
- {
- thread_count = input_objects->number_of_input_objects();
- if (thread_count == 0)
- thread_count = 1;
- }
+ thread_count = input_objects->number_of_input_objects();
workqueue->set_thread_count(thread_count);
// Use a blocker to block the final cleanup task.