summaryrefslogtreecommitdiffstats
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
commit41c5e9f2fcfa8420c8665b5b58289dbc9d103f90 (patch)
tree87e43bfa55ca85a55f093f4771d81957054c7df5
parentb9e0877223bd643856febff60f2a4453c7d12581 (diff)
downloadbcm5719-llvm-41c5e9f2fcfa8420c8665b5b58289dbc9d103f90.tar.gz
bcm5719-llvm-41c5e9f2fcfa8420c8665b5b58289dbc9d103f90.zip
Add the GetLibraryPath method.
llvm-svn: 16322
-rw-r--r--llvm/include/llvm/System/Path.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/include/llvm/System/Path.h b/llvm/include/llvm/System/Path.h
index 4bb57efcf8b..1a77ca62720 100644
--- a/llvm/include/llvm/System/Path.h
+++ b/llvm/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
OpenPOWER on IntegriCloud