diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-09-29 19:15:29 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-09-29 19:15:29 +0000 |
commit | 16a8fb7e9dd4a0347f7ed676e2d9bd254e1ea5b0 (patch) | |
tree | 666fd5f30ef164cd17c6fa00d883d53793105e05 /include/clang/Basic/Version.h | |
parent | 549ee4bd609a5862070fe432fce99b3ab686c847 (diff) |
Basic: Simplify getClangRepositoryPath and getClangRevision.
- I don't like returning StringRef's ever, unless it is actually important for
performance, which it isn't here.
- Also, stop validating getClangRevision to be an integer, I don't see a good
reason to do this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115071 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Version.h')
-rw-r--r-- | include/clang/Basic/Version.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/Version.h b/include/clang/Basic/Version.h index 59d82925fb..ede68ed50d 100644 --- a/include/clang/Basic/Version.h +++ b/include/clang/Basic/Version.h @@ -44,11 +44,11 @@ namespace clang { /// \brief Retrieves the repository path (e.g., Subversion path) that /// identifies the particular Clang branch, tag, or trunk from which this /// Clang was built. - llvm::StringRef getClangRepositoryPath(); + std::string getClangRepositoryPath(); /// \brief Retrieves the repository revision number (or identifer) from which /// this Clang was built. - llvm::StringRef getClangRevision(); + std::string getClangRevision(); /// \brief Retrieves the full repository version that is an amalgamation of /// the information in getClangRepositoryPath() and getClangRevision(). |