[cfe-commits] r72527 - /cfe/trunk/tools/clang-cc/clang-cc.cpp
Daniel Dunbar
daniel at zuster.org
Thu May 28 09:37:33 PDT 2009
Author: ddunbar
Date: Thu May 28 11:37:33 2009
New Revision: 72527
URL: http://llvm.org/viewvc/llvm-project?rev=72527&view=rev
Log:
Move clang-cc's -v output to the start (vs. end) of compilation, and change
clang -> clang-cc to be less confusing.
Modified:
cfe/trunk/tools/clang-cc/clang-cc.cpp
Modified: cfe/trunk/tools/clang-cc/clang-cc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.cpp?rev=72527&r1=72526&r2=72527&view=diff
==============================================================================
--- cfe/trunk/tools/clang-cc/clang-cc.cpp (original)
+++ cfe/trunk/tools/clang-cc/clang-cc.cpp Thu May 28 11:37:33 2009
@@ -2109,10 +2109,14 @@
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 @@
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,
More information about the cfe-commits
mailing list