diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-08 03:43:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-08 03:43:51 +0000 |
commit | 00a7b52385a25ab8cd412ce4c0f0ce11176b6793 (patch) | |
tree | b6e9c73895e61d1849c8009ac4264c99cbb890c5 /include/llvm/Support/CommandLine.h | |
parent | 4da69c77cf3719782f04ea1ec3d1f5fca583e325 (diff) | |
download | external_llvm-00a7b52385a25ab8cd412ce4c0f0ce11176b6793.tar.gz external_llvm-00a7b52385a25ab8cd412ce4c0f0ce11176b6793.tar.bz2 external_llvm-00a7b52385a25ab8cd412ce4c0f0ce11176b6793.zip |
Remove AllowInverse: it leaks memory and is not the right
abstraction for CommandLine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68588 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r-- | include/llvm/Support/CommandLine.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 6b05e602ef..1b625588d2 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -127,8 +127,7 @@ enum MiscFlags { // Miscellaneous flags to adjust argument CommaSeparated = 0x200, // Should this cl::list split between commas? PositionalEatsArgs = 0x400, // Should this positional cl::list eat -args? Sink = 0x800, // Should this cl::list eat all unknown options? - AllowInverse = 0x1000, // Can this option take a -Xno- form? - MiscMask = 0x1E00 // Union of the above flags. + MiscMask = 0xE00 // Union of the above flags. }; @@ -538,17 +537,14 @@ struct basic_parser : public basic_parser_impl { // template<> class parser<bool> : public basic_parser<bool> { - bool IsInvertible; // Should we synthesize a -xno- style option? const char *ArgStr; public: - void getExtraOptionNames(std::vector<const char*> &OptionNames); // parse - Return true on error. bool parse(Option &O, const char *ArgName, const std::string &Arg, bool &Val); template <class Opt> void initialize(Opt &O) { - IsInvertible = (O.getMiscFlags() & llvm::cl::AllowInverse); ArgStr = O.ArgStr; } |