diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-06-19 17:51:34 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-06-19 17:51:34 +0000 |
commit | 4f6a4b47675a30e621251fcda1d192a2c17c6eea (patch) | |
tree | 3e892ceddcee48b2256d53c14dde6bc5b32d4bd0 /lib/Driver/Driver.cpp | |
parent | 235a663d407182cb4e0f680df30ec9b6cfda0544 (diff) |
[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
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 6 |
1 files 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; |