diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-11 18:58:47 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-11 18:58:47 +0000 |
commit | 40de55a5569bd175cee6abab2070fa0edfbd8658 (patch) | |
tree | 1e2d766509b07e4d75bcba628a3b1f116c2ef70d /lib/Support/Path.cpp | |
parent | add4c2fbb1c5038337146a04e48d66a3d8bafa6b (diff) | |
download | external_llvm-40de55a5569bd175cee6abab2070fa0edfbd8658.tar.gz external_llvm-40de55a5569bd175cee6abab2070fa0edfbd8658.tar.bz2 external_llvm-40de55a5569bd175cee6abab2070fa0edfbd8658.zip |
Remove GetSystemLibraryPaths.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Path.cpp')
-rw-r--r-- | lib/Support/Path.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/Support/Path.cpp b/lib/Support/Path.cpp index 5c2b1f7dce..09d2eadd51 100644 --- a/lib/Support/Path.cpp +++ b/lib/Support/Path.cpp @@ -95,25 +95,6 @@ bool Path::hasMagicNumber(StringRef Magic) const { return false; } -static void getPathList(const char*path, std::vector<Path>& Paths) { - const char* at = path; - const char* delim = strchr(at, PathSeparator); - Path tmpPath; - while (delim != 0) { - std::string tmp(at, size_t(delim-at)); - if (tmpPath.set(tmp)) - if (tmpPath.canRead()) - Paths.push_back(tmpPath); - at = delim + 1; - delim = strchr(at, PathSeparator); - } - - if (*at != 0) - if (tmpPath.set(std::string(at))) - if (tmpPath.canRead()) - Paths.push_back(tmpPath); -} - static StringRef getDirnameCharSep(StringRef path, const char *Sep) { assert(Sep[0] != '\0' && Sep[1] == '\0' && "Sep must be a 1-character string literal."); |