Reserve a moderate amount of space for the back-end arguments.

llvm-svn: 149973
This commit is contained in:
Bill Wendling 2012-02-07 09:05:34 +00:00
parent b377fc3bfa
commit d5a2f4406e
1 changed files with 1 additions and 0 deletions

View File

@ -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");