aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-04 18:21:43 +0000
committerIan Lance Taylor <iant@google.com>2008-03-04 18:21:43 +0000
commit7cc619c3b1e037f50afd7c932d8c5409a6db5cb5 (patch)
tree10c46db6dcc8e2d41e93e851fb95ea06a816ed71 /gold/options.h
parent95ece4283165eaa6beeb4a3497d12b8726e8bdc8 (diff)
downloadfsf-binutils-gdb-7cc619c3b1e037f50afd7c932d8c5409a6db5cb5.zip
fsf-binutils-gdb-7cc619c3b1e037f50afd7c932d8c5409a6db5cb5.tar.gz
fsf-binutils-gdb-7cc619c3b1e037f50afd7c932d8c5409a6db5cb5.tar.bz2
From Craig Silverstein: rename some option functions in preparation
for reworking option handling.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/gold/options.h b/gold/options.h
index db13929..1b3f396 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -150,7 +150,7 @@ class General_options
typedef std::vector<Search_directory> Dir_list;
const Dir_list&
- search_path() const
+ library_path() const
{ return this->search_path_; }
// -O: optimization level (0: don't try to optimize output size).
@@ -165,11 +165,11 @@ class General_options
// --oformat: Output format.
Object_format
- oformat() const
+ oformat_enum() const
{ return this->oformat_; }
const char*
- oformat_string() const
+ oformat() const
{ return this->oformat_string_; }
// Return the default target.
@@ -267,7 +267,7 @@ class General_options
// --stats: Print resource usage statistics.
bool
- print_stats() const
+ stats() const
{ return this->print_stats_; }
// --sysroot: The system root of a cross-linker.
@@ -696,8 +696,8 @@ class Position_dependent_options
// -Bdynamic/-Bstatic: Whether we are searching for a static archive
// -rather than a shared object.
bool
- Bstatic() const
- { return this->do_static_search_; }
+ Bdynamic() const
+ { return !this->do_static_search_; }
// --as-needed: Whether to add a DT_NEEDED argument only if the
// dynamic object is used.
@@ -713,7 +713,7 @@ class Position_dependent_options
// --format: The format of the input file.
Object_format
- format() const
+ format_enum() const
{ return this->input_format_; }
void
@@ -743,6 +743,10 @@ class Position_dependent_options
void
set_format(const char*);
+ void
+ set_format_enum(Object_format value)
+ { this->input_format_ = value; }
+
private:
bool do_static_search_;
bool as_needed_;