Re-landing changes to use ArrayRef instead of SmallVectorImpl, and new API test.
[oota-llvm.git] / lib / Support / CommandLine.cpp
index 4cd6f0c5f0a398fd398bca744b06f61201044174..35c49be02ced7f95a8cc9552d1b70359a8b8c775 100644 (file)
@@ -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;