Dump PrettyStackTrace on Ctrl-T in a frontend job (#26234)

It'll dump it for all the frontend jobs spawned from a driver, too,
but then the driver will buffer the response, so it's not that useful.

Requires LLVM r365911.
This commit is contained in:
Jordan Rose
2019-07-22 15:55:33 -07:00
committed by GitHub
parent 0927693180
commit cd4018e80c

View File

@@ -1607,6 +1607,7 @@ int swift::performFrontend(ArrayRef<const char *> Args,
const char *Argv0, void *MainAddr,
FrontendObserver *observer) {
INITIALIZE_LLVM();
llvm::EnablePrettyStackTraceOnSigInfoForThisThread();
PrintingDiagnosticConsumer PDC;