mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Allow invertable -xno- style optins as well.
llvm-svn: 67862
This commit is contained in:
parent
88094aaaf9
commit
f25de0da23
@ -544,10 +544,14 @@ public:
|
||||
if (IsInvertable) {
|
||||
char *s = new char [strlen(ArgStr) + 3 + 1];
|
||||
s[0] = ArgStr[0];
|
||||
if (strncmp(ArgStr+1, "no-", 3) == 0)
|
||||
strcpy(&s[1], &ArgStr[4]);
|
||||
else {
|
||||
s[1] = 'n';
|
||||
s[2] = 'o';
|
||||
s[3] = '-';
|
||||
strcpy(&s[4], ArgStr+1);
|
||||
}
|
||||
OptionNames.push_back(s);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user