summaryrefslogtreecommitdiffstats
path: root/clang/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
commit2377a0e0ea01f57ad4ee5e39772f586217344cde (patch)
tree15c44c9bf47a90d366aaf471aa248cb67a35f263 /clang/lib/Basic/Version.cpp
parent9ae8d349e6d4b2e1b0e56961747a374d1ef1f24b (diff)
downloadbcm5719-llvm-2377a0e0ea01f57ad4ee5e39772f586217344cde.tar.gz
bcm5719-llvm-2377a0e0ea01f57ad4ee5e39772f586217344cde.zip
Rename getClangSubversionPath() -> getClangRepositoryPath() and have it return a StringRef.
llvm-svn: 94213
Diffstat (limited to 'clang/lib/Basic/Version.cpp')
-rw-r--r--clang/lib/Basic/Version.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Basic/Version.cpp b/clang/lib/Basic/Version.cpp
index 18a8a88810d..0751cfcf5d4 100644
--- a/clang/lib/Basic/Version.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud