]> granicus.if.org Git - clang/commitdiff
[driver] Have the crash diagnostics print the clang version information.
authorChad Rosier <mcrosier@apple.com>
Wed, 23 May 2012 21:38:47 +0000 (21:38 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 23 May 2012 21:38:47 +0000 (21:38 +0000)
rdar://11518308

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157346 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index 9e3ba84d5b6474726cd14b1cd5858e83a69b1396..9a73da64911b6268887207315af0ba42751f44cb 100644 (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;