[llvm-commits] CVS: llvm/include/llvm/System/Path.h

Reid Spencer reid at x10sys.com
Mon Sep 13 16:46:33 PDT 2004



Changes in directory llvm/include/llvm/System:

Path.h updated: 1.5 -> 1.6
---
Log message:

Add the GetLibraryPath method.


---
Diffs of the changes:  (+11 -0)

Index: llvm/include/llvm/System/Path.h
diff -u llvm/include/llvm/System/Path.h:1.5 llvm/include/llvm/System/Path.h:1.6
--- llvm/include/llvm/System/Path.h:1.5	Fri Sep 10 23:19:17 2004
+++ llvm/include/llvm/System/Path.h	Mon Sep 13 18:46:23 2004
@@ -15,6 +15,7 @@
 #define LLVM_SYSTEM_PATH_H
 
 #include <string>
+#include <vector>
 
 namespace llvm {
 namespace sys {
@@ -61,6 +62,16 @@
       /// 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






More information about the llvm-commits mailing list