diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-05-23 21:38:47 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-05-23 21:38:47 +0000 |
commit | f0fab767c8c272fc77699e82fd581ddf4d9d71fa (patch) | |
tree | 48122354ad17ad5c4033d822fd8a78227a647591 /lib/Driver/Driver.cpp | |
parent | 6f9c05df3a251a8bed987dfa53ecd52d2d3182f8 (diff) |
[driver] Have the crash diagnostics print the clang version information.
rdar://11518308
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 9e3ba84d5b..9a73da6491 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -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; |