mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
simplify trivial function
llvm-svn: 30924
This commit is contained in:
parent
c7283044d1
commit
cf5bfb0e80
@ -198,11 +198,7 @@ public:
|
||||
void setValueStr(const char *S) { ValueStr = S; }
|
||||
|
||||
void setFlag(unsigned Flag, unsigned FlagMask) {
|
||||
if (Flags & FlagMask) {
|
||||
error(": Specified two settings for the same option!");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Flags &= ~FlagMask;
|
||||
Flags |= Flag;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user