mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -293,6 +293,7 @@ static int doDumpReflectionSections(ArrayRef<std::string> binaryFilenames,
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
PROGRAM_START(argc, argv);
|
||||
llvm::cl::ParseCommandLineOptions(argc, argv, "Swift Reflection Dump\n");
|
||||
return doDumpReflectionSections(options::BinaryFilename,
|
||||
options::Architecture,
|
||||
|
||||
Reference in New Issue
Block a user