[cfe-commits] r158729 - /cfe/trunk/lib/Driver/Driver.cpp
Chad Rosier
mcrosier at apple.com
Tue Jun 19 10:51:34 PDT 2012
Author: mcrosier
Date: Tue Jun 19 12:51:34 2012
New Revision: 158729
URL: http://llvm.org/viewvc/llvm-project?rev=158729&view=rev
Log:
[driver] Print the compiler version before the diagnostic messages.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=158729&r1=158728&r2=158729&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Tue Jun 19 12:51:34 2012
@@ -382,6 +382,9 @@
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 @@
"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;
More information about the cfe-commits
mailing list