[cfe-commits] r149973 - /cfe/trunk/lib/CodeGen/BackendUtil.cpp

Bill Wendling isanbard at gmail.com
Tue Feb 7 01:05:34 PST 2012


Author: void
Date: Tue Feb  7 03:05:34 2012
New Revision: 149973

URL: http://llvm.org/viewvc/llvm-project?rev=149973&view=rev
Log:
Reserve a moderate amount of space for the back-end arguments.

Modified:
    cfe/trunk/lib/CodeGen/BackendUtil.cpp

Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=149973&r1=149972&r2=149973&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Tue Feb  7 03:05:34 2012
@@ -247,6 +247,7 @@
   }
 
   std::vector<const char *> BackendArgs;
+  BackendArgs.reserve(16);
   BackendArgs.push_back("clang"); // Fake program name.
   if (!CodeGenOpts.DebugPass.empty()) {
     BackendArgs.push_back("-debug-pass");





More information about the cfe-commits mailing list