aboutsummaryrefslogtreecommitdiff
path: root/gold/script.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-26 21:45:30 +0000
committerIan Lance Taylor <iant@google.com>2008-02-26 21:45:30 +0000
commit45aa233bdcc27243a2b3e2c699ad0ab59f83901b (patch)
tree7483af747e28433511eaa64b11233b19473b89c9 /gold/script.cc
parent58abc3ebf63249755146ba6a811ad909732641b1 (diff)
downloadgdb-45aa233bdcc27243a2b3e2c699ad0ab59f83901b.zip
gdb-45aa233bdcc27243a2b3e2c699ad0ab59f83901b.tar.gz
gdb-45aa233bdcc27243a2b3e2c699ad0ab59f83901b.tar.bz2
From Craig Silverstein: rename option functions for future option
handling rewrite.
Diffstat (limited to 'gold/script.cc')
-rw-r--r--gold/script.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gold/script.cc b/gold/script.cc
index 3213115..faa1cda 100644
--- a/gold/script.cc
+++ b/gold/script.cc
@@ -1419,8 +1419,8 @@ read_script_file(const char* filename, Command_line* cmdline,
// We don't want this file to be opened in binary mode.
Position_dependent_options posdep = cmdline->position_dependent_options();
- if (posdep.input_format() == General_options::OBJECT_FORMAT_BINARY)
- posdep.set_input_format("elf");
+ if (posdep.format() == General_options::OBJECT_FORMAT_BINARY)
+ posdep.set_format("elf");
Input_file_argument input_argument(filename, false, "", false, posdep);
Input_file input_file(&input_argument);
if (!input_file.open(cmdline->options(), dirsearch, task))
@@ -2094,7 +2094,7 @@ extern "C" void
script_start_as_needed(void* closurev)
{
Parser_closure* closure = static_cast<Parser_closure*>(closurev);
- closure->position_dependent_options().set_as_needed();
+ closure->position_dependent_options().set_as_needed(true);
}
// Called by the bison parser at the end of an AS_NEEDED list.
@@ -2103,7 +2103,7 @@ extern "C" void
script_end_as_needed(void* closurev)
{
Parser_closure* closure = static_cast<Parser_closure*>(closurev);
- closure->position_dependent_options().clear_as_needed();
+ closure->position_dependent_options().set_as_needed(false);
}
// Called by the bison parser to set the entry symbol.