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 | 37a12af0af8e5efc71efd319cc6abf58dc47f8da (patch) | |
tree | 961a89b622b165851083e9b8f2307ba8ad112336 /clang/lib | |
parent | 64637205051bb9789436cc4546ac9d8507a0c9d0 (diff) | |
download | bcm5719-llvm-37a12af0af8e5efc71efd319cc6abf58dc47f8da.tar.gz bcm5719-llvm-37a12af0af8e5efc71efd319cc6abf58dc47f8da.zip |
[driver] Have the crash diagnostics print the clang version information.
rdar://11518308
llvm-svn: 157346
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 9e3ba84d5b6..9a73da64911 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/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; |