From Craig Silverstein: don't permit -s and -r.

This commit is contained in:
Ian Lance Taylor
2007-10-10 19:30:39 +00:00
parent 86f26d2fc3
commit 46738c9aeb
3 changed files with 95 additions and 60 deletions

View File

@@ -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_;