diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2009-04-01 00:15:46 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2009-04-01 00:15:46 +0000 |
commit | d485e885f04eaaafc9c0ce2555c6bd853b7c18a3 (patch) | |
tree | 42493b07b98b7cabf1cc939856a61b3972d58c4a /include/llvm/Support/CommandLine.h | |
parent | 41222823db11107834414a378525bb21493d3a1f (diff) | |
download | external_llvm-d485e885f04eaaafc9c0ce2555c6bd853b7c18a3.zip external_llvm-d485e885f04eaaafc9c0ce2555c6bd853b7c18a3.tar.gz external_llvm-d485e885f04eaaafc9c0ce2555c6bd853b7c18a3.tar.bz2 |
* Fixed spelling of `invertible'
* Simplified if statement
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68163 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r-- | include/llvm/Support/CommandLine.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 4a7c8c8..e45ab21 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -537,7 +537,7 @@ struct basic_parser : public basic_parser_impl { // template<> class parser<bool> : public basic_parser<bool> { - bool IsInvertable; // Should we synthezise a -xno- style option? + bool IsInvertible; // Should we synthesize a -xno- style option? const char *ArgStr; public: void getExtraOptionNames(std::vector<const char*> &OptionNames); @@ -547,10 +547,7 @@ public: template <class Opt> void initialize(Opt &O) { - if (O.getMiscFlags() & llvm::cl::AllowInverse) - IsInvertable = true; - else - IsInvertable = false; + IsInvertible = (O.getMiscFlags() & llvm::cl::AllowInverse); ArgStr = O.ArgStr; } |