diff options
author | Ian Lance Taylor <iant@google.com> | 2008-03-04 18:21:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-03-04 18:21:43 +0000 |
commit | 7cc619c3b1e037f50afd7c932d8c5409a6db5cb5 (patch) | |
tree | 10c46db6dcc8e2d41e93e851fb95ea06a816ed71 /gold/layout.cc | |
parent | 95ece4283165eaa6beeb4a3497d12b8726e8bdc8 (diff) | |
download | gdb-7cc619c3b1e037f50afd7c932d8c5409a6db5cb5.zip gdb-7cc619c3b1e037f50afd7c932d8c5409a6db5cb5.tar.gz gdb-7cc619c3b1e037f50afd7c932d8c5409a6db5cb5.tar.bz2 |
From Craig Silverstein: rename some option functions in preparation
for reworking option handling.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r-- | gold/layout.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gold/layout.cc b/gold/layout.cc index 97c13ea..fd7f3af 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -58,7 +58,7 @@ Layout_task_runner::run(Workqueue* workqueue, const Task* task) // Now we know the final size of the output file and we know where // each piece of information goes. Output_file* of = new Output_file(parameters->options().output_file_name()); - if (this->options_.oformat() != General_options::OBJECT_FORMAT_ELF) + if (this->options_.oformat_enum() != General_options::OBJECT_FORMAT_ELF) of->set_is_temporary(); of->open(file_size); @@ -987,7 +987,7 @@ Layout::finalize(const Input_objects* input_objects, Symbol_table* symtab, else load_seg = this->find_first_load_seg(); - if (this->options_.oformat() != General_options::OBJECT_FORMAT_ELF) + if (this->options_.oformat_enum() != General_options::OBJECT_FORMAT_ELF) load_seg = NULL; gold_assert(phdr_seg == NULL || load_seg != NULL); @@ -2561,7 +2561,7 @@ Layout::write_sections_after_input_sections(Output_file* of) void Layout::write_binary(Output_file* in) const { - gold_assert(this->options_.oformat() + gold_assert(this->options_.oformat_enum() == General_options::OBJECT_FORMAT_BINARY); // Get the size of the binary file. @@ -2732,7 +2732,7 @@ void Close_task_runner::run(Workqueue*, const Task*) { // If we've been asked to create a binary file, we do so here. - if (this->options_->oformat() != General_options::OBJECT_FORMAT_ELF) + if (this->options_->oformat_enum() != General_options::OBJECT_FORMAT_ELF) this->layout_->write_binary(this->of_); this->of_->close(); |