diff options
author | Richard Trieu <rtrieu@google.com> | 2015-01-27 03:03:47 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2015-01-27 03:03:47 +0000 |
commit | 15ac9363a7f139ae674c99a883fbeae9a239f3ce (patch) | |
tree | 9791462294b443e08f678f4c12f14222d8160cd9 /llvm/include/llvm/Support/CommandLine.h | |
parent | ca84e982c89bdc3da35da369bb1ca6ba9ce8858c (diff) | |
download | bcm5719-llvm-15ac9363a7f139ae674c99a883fbeae9a239f3ce.tar.gz bcm5719-llvm-15ac9363a7f139ae674c99a883fbeae9a239f3ce.zip |
Revert r227148 & r227154 which added a test which infinitely loops.
r227148 added test CommandLineTest.HideUnrelatedOptionsMulti which repeatedly
outputs two following lines:
-tool: CommandLine Error: Option 'test-option-1' registered more than once!
-tool: CommandLine Error: Option 'test-option-2' registered more than once!
r227154 depends on changes from r227148
llvm-svn: 227167
Diffstat (limited to 'llvm/include/llvm/Support/CommandLine.h')
-rw-r--r-- | llvm/include/llvm/Support/CommandLine.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h index efa17219585..e53ac06a3cd 100644 --- a/llvm/include/llvm/Support/CommandLine.h +++ b/llvm/include/llvm/Support/CommandLine.h @@ -20,7 +20,6 @@ #ifndef LLVM_SUPPORT_COMMANDLINE_H #define LLVM_SUPPORT_COMMANDLINE_H -#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringMap.h" #include "llvm/ADT/Twine.h" @@ -1939,7 +1938,7 @@ void HideUnrelatedOptions(cl::OptionCategory &Category); /// Some tools (like clang-format) like to be able to hide all options that are /// not specific to the tool. This function allows a tool to specify a single /// option category to display in the -help output. -void HideUnrelatedOptions(ArrayRef<const cl::OptionCategory *> Categories); +void HideUnrelatedOptions(SmallVectorImpl<cl::OptionCategory *> &Categories); } // End namespace cl |