Don't spend time initializing LLVM when running the driver (#14896)

Tiny start-up time optimization noticed while looking at how we do
PrettyStackTraceProgram. Also add PrettyStackTraceProgram to a few
more of our testing tools, via the new PROGRAM_START macro.
This commit is contained in:
Jordan Rose
2018-02-28 19:56:19 -08:00
committed by GitHub
parent b65932d30b
commit 3cd9f166bc
17 changed files with 48 additions and 36 deletions

View File

@@ -3610,7 +3610,8 @@ static int deserializeSDKDump(StringRef dumpPath, StringRef OutputPath) {
}
int main(int argc, char *argv[]) {
INITIALIZE_LLVM(argc, argv);
PROGRAM_START(argc, argv);
INITIALIZE_LLVM();
llvm::cl::ParseCommandLineOptions(argc, argv, "Swift SDK Digester\n");
CompilerInvocation InitInvok;