]> granicus.if.org Git - clang/commitdiff
[driver] Print the compiler version before the diagnostic messages.
authorChad Rosier <mcrosier@apple.com>
Tue, 19 Jun 2012 17:51:34 +0000 (17:51 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 19 Jun 2012 17:51:34 +0000 (17:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158729 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index 7c1b91b251f11729660eb6618f433b13652a51e0..dff30ee4048ffaddd674a350084dd44aa5212909 100644 (file)
@@ -382,6 +382,9 @@ void Driver::generateCompilationDiagnostics(Compilation &C,
   if (FailingCommand && FailingCommand->getCreator().isLinkJob())
     return;
 
+  // Print the version of the compiler.
+  PrintVersion(C, llvm::errs());
+
   Diag(clang::diag::note_drv_command_failed_diag_msg)
     << "\n********************\n********************\n\n"
     "PLEASE submit a BUG REPORT to " BUG_REPORT_URL " and _INCLUDE_ the "
@@ -389,9 +392,6 @@ void Driver::generateCompilationDiagnostics(Compilation &C,
     "and associated RUN SCRIPT.\n"
     "\n********************\n********************";
 
-  // Print the version of the compiler.
-  PrintVersion(C, llvm::errs());
-
   // Suppress driver output and emit preprocessor output to temp file.
   CCCIsCPP = true;
   CCGenDiagnostics = true;