diff options
author | Chris Bieneman <beanz@apple.com> | 2015-01-27 22:21:06 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2015-01-27 22:21:06 +0000 |
commit | 681693628770b4d69ca0ee69859ea97fd85f97e3 (patch) | |
tree | 546831cd0bcdff159e90e216b61d1186ee222765 /llvm/lib | |
parent | bfa3f9d82ff549fda10aaaf4cb7633dcbf9dcec6 (diff) | |
download | bcm5719-llvm-681693628770b4d69ca0ee69859ea97fd85f97e3.tar.gz bcm5719-llvm-681693628770b4d69ca0ee69859ea97fd85f97e3.zip |
Re-landing changes to use ArrayRef instead of SmallVectorImpl, and new API test.
This contains the changes from r227148 & r227154, and also fixes to the test case to properly clean up the stack options.
llvm-svn: 227255
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 4cd6f0c5f0a..35c49be02ce 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -1861,8 +1861,7 @@ void cl::HideUnrelatedOptions(cl::OptionCategory &Category) { } } -void cl::HideUnrelatedOptions( - SmallVectorImpl<cl::OptionCategory *> &Categories) { +void cl::HideUnrelatedOptions(ArrayRef<const cl::OptionCategory *> Categories) { auto CategoriesBegin = Categories.begin(); auto CategoriesEnd = Categories.end(); StringMap<cl::Option *> Options; |