forked from OSchip/llvm-project
Added method to access the raw flags of Token.
llvm-svn: 57877
This commit is contained in:
parent
9f20b6a610
commit
4e0f205145
|
@ -94,6 +94,13 @@ public:
|
|||
void clearFlag(TokenFlags Flag) {
|
||||
Flags &= ~Flag;
|
||||
}
|
||||
|
||||
/// getFlags - Return the internal represtation of the flags.
|
||||
/// Only intended for low-level operations such as writing tokens to
|
||||
// disk.
|
||||
unsigned getFlags() const {
|
||||
return Flags;
|
||||
}
|
||||
|
||||
/// setFlagValue - Set a flag to either true or false.
|
||||
void setFlagValue(TokenFlags Flag, bool Val) {
|
||||
|
|
Loading…
Reference in New Issue