From 08e6dc65b283b5b8f4f41a567d3451a3e4501b91 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 28 May 2009 16:37:33 +0000 Subject: [PATCH] Move clang-cc's -v output to the start (vs. end) of compilation, and change clang -> clang-cc to be less confusing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72527 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/clang-cc/clang-cc.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp index 5b0f864034..1503937afa 100644 --- a/tools/clang-cc/clang-cc.cpp +++ b/tools/clang-cc/clang-cc.cpp @@ -2109,10 +2109,14 @@ int main(int argc, char **argv) { llvm::PrettyStackTraceProgram X(argc, argv); llvm::cl::ParseCommandLineOptions(argc, argv, "LLVM 'Clang' Compiler: http://clang.llvm.org\n"); - + if (TimeReport) ClangFrontendTimer = new llvm::Timer("Clang front-end time"); + if (Verbose) + fprintf(stderr, "clang-cc version 1.0 based upon " PACKAGE_STRING + " hosted on " LLVM_HOSTTRIPLE "\n"); + // If no input was specified, read from stdin. if (InputFilenames.empty()) InputFilenames.push_back("-"); @@ -2272,10 +2276,6 @@ int main(int argc, char **argv) { DiagClient->setLangOptions(0); } - if (Verbose) - fprintf(stderr, "clang version 1.0 based upon " PACKAGE_STRING - " hosted on " LLVM_HOSTTRIPLE "\n"); - if (!NoCaretDiagnostics) if (unsigned NumDiagnostics = Diags.getNumDiagnostics()) fprintf(stderr, "%d diagnostic%s generated.\n", NumDiagnostics, -- 2.40.0