Driver: Make Arg::Claimed mutable.

- This is unfortunate but necessary to retain any utility for const.

llvm-svn: 67173
This commit is contained in:
Daniel Dunbar 2009-03-18 06:20:32 +00:00
parent e4197f6203
commit adfd573c3c
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ namespace driver {
/// Flag indicating whether this argument was used to effect
/// compilation; used for generating "argument unused"
/// diagnostics.
bool Claimed;
mutable bool Claimed;
protected:
Arg(ArgClass Kind, const Option *Opt, unsigned Index);
@ -78,7 +78,7 @@ namespace driver {
// FIXME: We need to deal with derived arguments and set the bit
// in the original argument; not the derived one.
void claim() { Claimed = true; }
void claim() const { Claimed = true; }
virtual unsigned getNumValues() const = 0;
virtual const char *getValue(const ArgList &Args, unsigned N=0) const = 0;