aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
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
commit1908aea3a64fa89a907317849cbff73789cdb89a (patch)
treef63494595a5cdd3ea4062dfca29258c8b4e9bea1 /lib/Support
parentf00a7d91c04db14cb0fd180c57482fe121eccfad (diff)
downloadexternal_llvm-1908aea3a64fa89a907317849cbff73789cdb89a.zip
external_llvm-1908aea3a64fa89a907317849cbff73789cdb89a.tar.gz
external_llvm-1908aea3a64fa89a907317849cbff73789cdb89a.tar.bz2
smallvectorize getExtraOptionNames
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/CommandLine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp
index 08c80c1..61b6cfe 100644
--- a/lib/Support/CommandLine.cpp
+++ b/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.