From: Manman Ren Date: Tue, 28 Jun 2016 22:20:17 +0000 (+0000) Subject: Revert r274054 to try to appease the bot X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba713e39b332989964a103ec9bdd0bc58be9accd;p=llvm Revert r274054 to try to appease the bot git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274072 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index b5c67b04b4b..432ae267478 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -21,12 +21,10 @@ #define LLVM_SUPPORT_COMMANDLINE_H #include "llvm/ADT/ArrayRef.h" -#include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringMap.h" #include "llvm/ADT/Twine.h" #include "llvm/Support/Compiler.h" -#include "llvm/Support/ManagedStatic.h" #include #include #include @@ -45,9 +43,8 @@ namespace cl { //===----------------------------------------------------------------------===// // ParseCommandLineOptions - Command line option processing entry point. // -bool ParseCommandLineOptions(int argc, const char *const *argv, - const char *Overview = nullptr, - bool IgnoreErrors = false); +void ParseCommandLineOptions(int argc, const char *const *argv, + const char *Overview = nullptr); //===----------------------------------------------------------------------===// // ParseEnvironmentOptions - Environment variable option processing alternate @@ -173,45 +170,6 @@ public: // The general Option Category (used as default category). extern OptionCategory GeneralCategory; -//===----------------------------------------------------------------------===// -// SubCommand class -// -class SubCommand { -private: - const char *const Name = nullptr; - const char *const Description = nullptr; - -protected: - void registerSubCommand(); - void unregisterSubCommand(); - -public: - SubCommand(const char *const Name, const char *const Description = nullptr) - : Name(Name), Description(Description) { - registerSubCommand(); - } - SubCommand() {} - - void reset(); - - operator bool() const; - - const char *getName() const { return Name; } - const char *getDescription() const { return Description; } - - SmallVector