[cfe-commits] r70424 - /cfe/trunk/lib/Driver/Driver.cpp

Douglas Gregor dgregor at apple.com
Wed Apr 29 15:47:43 PDT 2009


Author: dgregor
Date: Wed Apr 29 17:47:43 2009
New Revision: 70424

URL: http://llvm.org/viewvc/llvm-project?rev=70424&view=rev
Log:
Add PCH version to the -v output

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=70424&r1=70423&r2=70424&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Wed Apr 29 17:47:43 2009
@@ -23,6 +23,7 @@
 #include "clang/Driver/Types.h"
 
 #include "clang/Basic/Version.h"
+#include "clang/Frontend/PCHBitCodes.h"
 
 #include "llvm/ADT/StringSet.h"
 #include "llvm/Support/PrettyStackTrace.h"
@@ -357,6 +358,8 @@
 
   llvm::errs() << "clang version " CLANG_VERSION_STRING " (" 
                << vers << " " << revision << ")" << "\n";
+  llvm::errs() << "PCH version " << pch::VERSION_MAJOR << "."
+               << pch::VERSION_MINOR << "\n";
 
   const ToolChain &TC = C.getDefaultToolChain();
   llvm::errs() << "Target: " << TC.getTripleString() << '\n';





More information about the cfe-commits mailing list