mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
Add the GetLibraryPath method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16322 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e59eaf407a
commit
9ab80b794e
@ -15,6 +15,7 @@
|
|||||||
#define LLVM_SYSTEM_PATH_H
|
#define LLVM_SYSTEM_PATH_H
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
namespace sys {
|
namespace sys {
|
||||||
@ -61,6 +62,16 @@ namespace sys {
|
|||||||
/// directory.
|
/// directory.
|
||||||
static Path GetTemporaryDirectory();
|
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
|
/// Construct a path to the first system library directory. The
|
||||||
/// implementation of Path on a given platform must ensure that this
|
/// implementation of Path on a given platform must ensure that this
|
||||||
/// directory both exists and also contains standard system libraries
|
/// directory both exists and also contains standard system libraries
|
||||||
|
Loading…
x
Reference in New Issue
Block a user