From f8e5d4cf39220e9b7c7ee744f634fce6dec28a76 Mon Sep 17 00:00:00 2001 From: Jia Liu Date: Fri, 2 Mar 2012 14:37:41 +0000 Subject: clang -v support for separate clang.git and llvm.git, patch by Andrew Trick. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151910 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/Version.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/clang/Basic/Version.h') diff --git a/include/clang/Basic/Version.h b/include/clang/Basic/Version.h index 96be5475c6..f3f5b5a53a 100644 --- a/include/clang/Basic/Version.h +++ b/include/clang/Basic/Version.h @@ -47,10 +47,19 @@ namespace clang { /// Clang was built. std::string getClangRepositoryPath(); + /// \brief Retrieves the repository path from which LLVM was built. Supports + /// LLVM residing in a separate repository from clang. + std::string getLLVMRepositoryPath(); + /// \brief Retrieves the repository revision number (or identifer) from which /// this Clang was built. std::string getClangRevision(); + /// \brief Retrieves the repository revision number (or identifer) from which + /// LLVM was built. If Clang and LLVM are in the same repository, this returns + /// the same string as getClangRevision. + std::string getLLVMRevision(); + /// \brief Retrieves the full repository version that is an amalgamation of /// the information in getClangRepositoryPath() and getClangRevision(). std::string getClangFullRepositoryVersion(); -- cgit v1.2.3