summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-20 06:21:43 +0000
committerChris Lattner <sabre@nondot.org>2009-09-20 06:21:43 +0000
commit56efff07f5723e5a31e0cabf61d7c97d44a92d13 (patch)
treeb084d92b100fe20d8eecb7535be3ba005b1414cb /llvm/lib/Support/CommandLine.cpp
parent5c63f7b6b86ac321d8cd52306666e4bce860a5e1 (diff)
downloadbcm5719-llvm-56efff07f5723e5a31e0cabf61d7c97d44a92d13.tar.gz
bcm5719-llvm-56efff07f5723e5a31e0cabf61d7c97d44a92d13.zip
smallvectorize getExtraOptionNames
llvm-svn: 82377
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 08c80c17974..61b6cfe929e 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -108,8 +108,7 @@ void Option::addArgument() {
static void GetOptionInfo(SmallVectorImpl<Option*> &PositionalOpts,
SmallVectorImpl<Option*> &SinkOpts,
StringMap<Option*> &OptionsMap) {
- // FIXME: SmallVectorize.
- std::vector<const char*> OptionNames;
+ SmallVector<const char*, 16> OptionNames;
Option *CAOpt = 0; // The ConsumeAfter option if it exists.
for (Option *O = RegisteredOptionList; O; O = O->getNextRegisteredOption()) {
// If this option wants to handle multiple option names, get the full set.
OpenPOWER on IntegriCloud