summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Path.cpp
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 /llvm/lib/Support/Path.cpp
parent3add14d77e043335b206e50ef6061f20a9d216d6 (diff)
downloadbcm5719-llvm-0487a3210f5fc6a4f755ff95f84e45bcf30f5051.tar.gz
bcm5719-llvm-0487a3210f5fc6a4f755ff95f84e45bcf30f5051.zip
Remove unused FindLibrary function.
llvm-svn: 183764
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r--llvm/lib/Support/Path.cpp17
1 files changed, 0 insertions, 17 deletions
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