aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-02-07 09:05:34 +0000
committerBill Wendling <isanbard@gmail.com>2012-02-07 09:05:34 +0000
commitd5a2f4406e8f31b41e8972891255309505c19eb4 (patch)
tree9815862f8bb503bae7fcaa110e888046c854b315 /clang/lib/CodeGen/BackendUtil.cpp
parentb377fc3bfa32f4d87129e05780abd208acd97740 (diff)
downloadllvm-d5a2f4406e8f31b41e8972891255309505c19eb4.zip
llvm-d5a2f4406e8f31b41e8972891255309505c19eb4.tar.gz
llvm-d5a2f4406e8f31b41e8972891255309505c19eb4.tar.bz2
Reserve a moderate amount of space for the back-end arguments.
llvm-svn: 149973
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 1cbc69b..1707ec5 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -247,6 +247,7 @@ bool EmitAssemblyHelper::AddEmitPasses(BackendAction Action,
}
std::vector<const char *> BackendArgs;
+ BackendArgs.reserve(16);
BackendArgs.push_back("clang"); // Fake program name.
if (!CodeGenOpts.DebugPass.empty()) {
BackendArgs.push_back("-debug-pass");