summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-04-01 00:15:46 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-04-01 00:15:46 +0000
commit5fc1a0339c6d1affe3b53fe0910e592cf51b4e3b (patch)
treecc7f2b9e06502253510993be887b160a901eb08f /llvm/lib/Support/CommandLine.cpp
parent7a6f8b928116c08d4a3c67d0a4e7b0afdcc4d833 (diff)
downloadbcm5719-llvm-5fc1a0339c6d1affe3b53fe0910e592cf51b4e3b.tar.gz
bcm5719-llvm-5fc1a0339c6d1affe3b53fe0910e592cf51b4e3b.zip
* Fixed spelling of `invertible'
* Simplified if statement llvm-svn: 68163
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index f3f198b355e..710b210ab99 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -872,13 +872,13 @@ bool parser<bool>::parse(Option &O, const char *ArgName,
return O.error(": '" + Arg +
"' is invalid value for boolean argument! Try 0 or 1");
}
- if (IsInvertable && strncmp(ArgName+1, "no-", 3) == 0)
+ if (IsInvertible && strncmp(ArgName+1, "no-", 3) == 0)
Value = !Value;
return false;
}
void parser<bool>::getExtraOptionNames(std::vector<const char*> &OptionNames) {
- if (!IsInvertable)
+ if (!IsInvertible)
return;
char *s = new char [strlen(ArgStr) + 3 + 1];
OpenPOWER on IntegriCloud