diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-28 00:18:24 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-28 00:18:24 +0000 |
commit | 8851eccaec28f25f56fab5ba5d8ae44f71729975 (patch) | |
tree | 8580999a45a15a7e86dbabb0675a05f647aedd1a /gold/fileread.cc | |
parent | f960754aeea602f787d1828efb0f9a8baeca646e (diff) | |
download | binutils-gdb-8851eccaec28f25f56fab5ba5d8ae44f71729975.tar.gz |
From Craig Silverstein: Have Parameters point to General_options.
Diffstat (limited to 'gold/fileread.cc')
-rw-r--r-- | gold/fileread.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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(), |