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/lib/Support | |
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/lib/Support')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 35c49be02ce..4cd6f0c5f0a 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -1861,7 +1861,8 @@ void cl::HideUnrelatedOptions(cl::OptionCategory &Category) { } } -void cl::HideUnrelatedOptions(ArrayRef<const cl::OptionCategory *> Categories) { +void cl::HideUnrelatedOptions( + SmallVectorImpl<cl::OptionCategory *> &Categories) { auto CategoriesBegin = Categories.begin(); auto CategoriesEnd = Categories.end(); StringMap<cl::Option *> Options; |