From ee24266bfee859067d47d1517179da125d057ede Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 29 Apr 2009 22:47:43 +0000 Subject: [PATCH] Add PCH version to the -v output git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70424 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Driver.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 6f75d3e7f9..4faaed1c74 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -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 @@ void Driver::PrintVersion(const Compilation &C) const { 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'; -- 2.40.0