[driver] Have the crash diagnostics print the clang version information.

rdar://11518308

llvm-svn: 157346
This commit is contained in:
Chad Rosier 2012-05-23 21:38:47 +00:00
parent 6463720505
commit 37a12af0af
1 changed files with 3 additions and 0 deletions

View File

@ -386,6 +386,9 @@ void Driver::generateCompilationDiagnostics(Compilation &C,
<< "Please submit a bug report to " BUG_REPORT_URL " and include command"
" line arguments and all diagnostic information.";
// Print the version of the compiler.
PrintVersion(C, llvm::errs());
// Suppress driver output and emit preprocessor output to temp file.
CCCIsCPP = true;
CCGenDiagnostics = true;