forked from OSchip/llvm-project
Driver: Make Arg::Claimed mutable.
- This is unfortunate but necessary to retain any utility for const. llvm-svn: 67173
This commit is contained in:
parent
e4197f6203
commit
adfd573c3c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue