diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-01-22 22:12:47 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-01-22 22:12:47 +0000 |
commit | f7a96a39958b3f919f26764777eec948b43d74bc (patch) | |
tree | ba5b7f7dfe1695d6fb5496095a0a2a1f06be96f9 /lib/Driver/Driver.cpp | |
parent | e07b6e58d3a23803f537ba861298475c1eb65eab (diff) |
(1) Rename getClangSubversionRevision() to getClangRevision(), and
have it return a StringRef instead of an integer (to be more VCS
agnostic).
(2) Add getClangFullRepositoryVersion(), which contains an
amalgamation of the repository name and the revision.
(3) Change PCH to only emit the string returned by
getClangFullRepositoryVersion() instead of also emitting the value
of getClangSubversionRevision() (which has been removed). This is
functionally equivalent.
More cleanup to version string generation pending...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 5490ef3d67..298e173e38 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -286,9 +286,7 @@ void Driver::PrintVersion(const Compilation &C, llvm::raw_ostream &OS) const { OS << CLANG_VENDOR; #endif OS << "clang version " CLANG_VERSION_STRING " (" - << getClangRepositoryPath(); - if (unsigned Revision = getClangSubversionRevision()) - OS << " " << Revision; + << getClangFullRepositoryVersion(); OS << ")" << '\n'; const ToolChain &TC = C.getDefaultToolChain(); |