aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-09-13 23:46:23 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-09-13 23:46:23 +0000
commit9ab80b794ec800d76a59865893523f9cd300645d (patch)
tree232fd0b363aa1a4658dd6f30a08fcf22dbe02c28 /include/llvm/System
parente59eaf407a675845e278c2769e3dbed9f1daae8c (diff)
downloadexternal_llvm-9ab80b794ec800d76a59865893523f9cd300645d.zip
external_llvm-9ab80b794ec800d76a59865893523f9cd300645d.tar.gz
external_llvm-9ab80b794ec800d76a59865893523f9cd300645d.tar.bz2
Add the GetLibraryPath method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16322 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/Path.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index 4bb57ef..1a77ca6 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -15,6 +15,7 @@
#define LLVM_SYSTEM_PATH_H
#include <string>
+#include <vector>
namespace llvm {
namespace sys {
@@ -61,6 +62,16 @@ namespace sys {
/// directory.
static Path GetTemporaryDirectory();
+ /// Determine the platform-specific location of a library by first
+ /// searching a list of library paths, then searching a list of "well
+ /// known" paths for the platform. T
+ /// @returns a valid Path object if the library was found, an invalid
+ /// one otherwise.
+ /// @throws nothing
+ /// @brief Locate a library in a platform specific manner.
+ static Path GetLibraryPath(const std::string& basename,
+ const std::vector<std::string>& LibPaths);
+ ///
/// Construct a path to the first system library directory. The
/// implementation of Path on a given platform must ensure that this
/// directory both exists and also contains standard system libraries