summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-11 18:41:07 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-11 18:41:07 +0000
commit0487a3210f5fc6a4f755ff95f84e45bcf30f5051 (patch)
treef7bb5efa32ba463e852dce85301cfd8dd15c6a4e
parent3add14d77e043335b206e50ef6061f20a9d216d6 (diff)
downloadbcm5719-llvm-0487a3210f5fc6a4f755ff95f84e45bcf30f5051.tar.gz
bcm5719-llvm-0487a3210f5fc6a4f755ff95f84e45bcf30f5051.zip
Remove unused FindLibrary function.
llvm-svn: 183764
-rw-r--r--llvm/include/llvm/Support/PathV1.h5
-rw-r--r--llvm/lib/Support/Path.cpp17
2 files changed, 0 insertions, 22 deletions
diff --git a/llvm/include/llvm/Support/PathV1.h b/llvm/include/llvm/Support/PathV1.h
index 64c1dff6e76..d84be7aa1cd 100644
--- a/llvm/include/llvm/Support/PathV1.h
+++ b/llvm/include/llvm/Support/PathV1.h
@@ -126,11 +126,6 @@ namespace sys {
/// found.
static void GetBitcodeLibraryPaths(std::vector<sys::Path>& Paths);
- /// Find the path to a library using its short name. Use the system
- /// dependent library paths to locate the library.
- /// @brief Find a library.
- static Path FindLibrary(std::string& short_name);
-
/// Construct a path to the current user's home directory. The
/// implementation must use an operating system specific mechanism for
/// determining the user's home directory. For example, the environment
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp
index e53abe8f592..5c2b1f7dcef 100644
--- a/llvm/lib/Support/Path.cpp
+++ b/llvm/lib/Support/Path.cpp
@@ -68,23 +68,6 @@ Path::isObjectFile() const {
return true;
}
-Path
-Path::FindLibrary(std::string& name) {
- std::vector<sys::Path> LibPaths;
- GetSystemLibraryPaths(LibPaths);
- for (unsigned i = 0; i < LibPaths.size(); ++i) {
- sys::Path FullPath(LibPaths[i]);
- FullPath.appendComponent("lib" + name + LTDL_SHLIB_EXT);
- if (FullPath.isDynamicLibrary())
- return FullPath;
- FullPath.eraseSuffix();
- FullPath.appendSuffix("a");
- if (FullPath.isArchive())
- return FullPath;
- }
- return sys::Path();
-}
-
StringRef Path::GetDLLSuffix() {
return &(LTDL_SHLIB_EXT[1]);
}
OpenPOWER on IntegriCloud