diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-10 19:30:39 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-10 19:30:39 +0000 |
commit | 46738c9aeb6140719e265425db002a2f887107cc (patch) | |
tree | feb0d96531d716630a2d00ce792aae0df6020261 /gold/options.h | |
parent | 86f26d2fc30272709d82ef42bf8e4f578418b076 (diff) | |
download | gdb-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.h | 7 |
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_; |