aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-10 19:30:39 +0000
committerIan Lance Taylor <iant@google.com>2007-10-10 19:30:39 +0000
commit46738c9aeb6140719e265425db002a2f887107cc (patch)
treefeb0d96531d716630a2d00ce792aae0df6020261 /gold/options.h
parent86f26d2fc30272709d82ef42bf8e4f578418b076 (diff)
downloadgdb-46738c9aeb6140719e265425db002a2f887107cc.zip
gdb-46738c9aeb6140719e265425db002a2f887107cc.tar.gz
gdb-46738c9aeb6140719e265425db002a2f887107cc.tar.bz2
From Craig Silverstein: don't permit -s and -r.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index 1e850cf..a11b68c 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -225,6 +225,8 @@ class General_options
set_strip_all()
{ this->strip_ = STRIP_ALL; }
+ // Note: normalize_options() depends on the fact that this turns off
+ // STRIP_ALL if it were already set.
void
set_strip_debug()
{ this->strip_ = STRIP_DEBUG; }
@@ -587,6 +589,11 @@ class Command_line
void
add_file(const char* name, bool is_lib);
+ // Examine the result of processing the command-line, and verify
+ // the flags do not contradict each other or are otherwise illegal.
+ void
+ normalize_options();
+
General_options options_;
Position_dependent_options position_options_;
Input_arguments inputs_;