speed up clang startup another 28% by avoiding std::vector<std::string>
for holding builtin target-specific macros.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42689 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index b5c1559..f1dc6a0 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -744,6 +744,8 @@
HeaderSearch &HeaderInfo,
const LangOptions &LangInfo,
std::vector<char> &PrologMacros) {
+ PrologMacros.reserve(4080);
+
FileManager &FileMgr = HeaderInfo.getFileMgr();
// Install things like __POWERPC__, __GNUC__, etc into the macro table.