From 8851eccaec28f25f56fab5ba5d8ae44f71729975 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 28 Feb 2008 00:18:24 +0000 Subject: From Craig Silverstein: Have Parameters point to General_options. --- gold/fileread.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gold/fileread.cc') diff --git a/gold/fileread.cc b/gold/fileread.cc index 2defbf88143..901c52802d2 100644 --- a/gold/fileread.cc +++ b/gold/fileread.cc @@ -714,17 +714,17 @@ Input_file::open(const General_options& options, const Dirsearch& dirpath, // Open a file for --format binary. bool -Input_file::open_binary(const General_options& options, +Input_file::open_binary(const General_options&, const Task* task, const std::string& name) { // In order to open a binary file, we need machine code, size, and // endianness. We may not have a valid target at this point, in // which case we use the default target. - Target* target; - if (parameters->is_target_valid()) - target = parameters->target(); + const Target* target; + if (parameters->target_valid()) + target = ¶meters->target(); else - target = options.default_target(); + target = ¶meters->default_target(); Binary_to_elf binary_to_elf(target->machine_code(), target->get_size(), -- cgit v1.2.1