From 4f6a4b47675a30e621251fcda1d192a2c17c6eea Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Tue, 19 Jun 2012 17:51:34 +0000 Subject: [PATCH] [driver] Print the compiler version before the diagnostic messages. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158729 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Driver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 7c1b91b251..dff30ee404 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -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; -- 2.50.1