summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-01-26 22:50:47 +0000
committerChris Bieneman <beanz@apple.com>2015-01-26 22:50:47 +0000
commitc333e577fe476fb4f8f4ab3c0babdcc07f62a2be (patch)
treef5d0fc4d75ab04fc2668f308a59251f860e4deee /llvm/lib/Support/CommandLine.cpp
parent1a63f5b624883e051fe7ab4b9dbaf89aeda9bf2e (diff)
downloadbcm5719-llvm-c333e577fe476fb4f8f4ab3c0babdcc07f62a2be.tar.gz
bcm5719-llvm-c333e577fe476fb4f8f4ab3c0babdcc07f62a2be.zip
Pete Cooper suggested the new API should use ArrayRef instead of SmallVectorImpl. Also adding a test case.
llvm-svn: 227148
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 4cd6f0c5f0a..f17d1f69ad6 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<cl::OptionCategory *> Categories) {
auto CategoriesBegin = Categories.begin();
auto CategoriesEnd = Categories.end();
StringMap<cl::Option *> Options;
OpenPOWER on IntegriCloud