aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/Version.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-01-22 20:55:35 +0000
committerTed Kremenek <kremenek@apple.com>2010-01-22 20:55:35 +0000
commit517e676b9e1524e39beeb47718822f2647801d1a (patch)
tree0cca5f69805de64b3c83350e35c89f330cbf6d21 /lib/Basic/Version.cpp
parent9fb48de917e6646725d5bb01b6e2c5ec46ff75a1 (diff)
Rename getClangSubversionPath() -> getClangRepositoryPath() and have it return a StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Version.cpp')
-rw-r--r--lib/Basic/Version.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Basic/Version.cpp b/lib/Basic/Version.cpp
index 18a8a88810..0751cfcf5d 100644
--- a/lib/Basic/Version.cpp
+++ b/lib/Basic/Version.cpp
@@ -10,13 +10,16 @@
// This file defines several version-related utility functions for Clang.
//
//===----------------------------------------------------------------------===//
+
+#include "llvm/ADT/StringRef.h"
#include <cstring>
#include <cstdlib>
+
using namespace std;
namespace clang {
-const char *getClangSubversionPath() {
+llvm::StringRef getClangRepositoryPath() {
static const char *Path = 0;
if (Path)
return Path;