diff options
author | Ian Lance Taylor <iant@google.com> | 2008-01-18 23:26:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-01-18 23:26:48 +0000 |
commit | 14144f39e4581f4f39bcd44c2f8336fee28b0220 (patch) | |
tree | 27a91c439e1201a53adafe630f40cf9d38b50f30 /gold/output.cc | |
parent | 6c0784b28fbb83da4507af0aca9db625363925da (diff) | |
download | gdb-14144f39e4581f4f39bcd44c2f8336fee28b0220.zip gdb-14144f39e4581f4f39bcd44c2f8336fee28b0220.tar.gz gdb-14144f39e4581f4f39bcd44c2f8336fee28b0220.tar.bz2 |
Don't include options.h in fileread.h. Remove General_options
reference from Output_file class.
Diffstat (limited to 'gold/output.cc')
-rw-r--r-- | gold/output.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gold/output.cc b/gold/output.cc index 4c6959e..1060de6 100644 --- a/gold/output.cc +++ b/gold/output.cc @@ -1861,7 +1861,7 @@ Output_section::do_write(Output_file* of) p != this->fills_.end(); ++p) { - std::string fill_data(of->target()->code_fill(p->length())); + std::string fill_data(parameters->target()->code_fill(p->length())); of->write(output_section_file_offset + p->section_offset(), fill_data.data(), fill_data.size()); } @@ -2372,10 +2372,8 @@ Output_segment::write_section_headers_list(const Layout* layout, // Output_file methods. -Output_file::Output_file(const General_options& options, Target* target) - : options_(options), - target_(target), - name_(options.output_file_name()), +Output_file::Output_file(const char* name) + : name_(name), o_(-1), file_size_(0), base_(NULL), |