1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Create a replacement for sys::Path::PathSeparator.

llvm-svn: 184806
This commit is contained in:
Rafael Espindola 2013-06-25 01:10:36 +00:00
parent df18681407
commit 8b1802841d

View File

@ -21,6 +21,15 @@
namespace llvm {
class error_code;
namespace sys {
/// This is the OS-specific separator for PATH like environment variables:
// a colon on Unix or a semicolon on Windows.
#if defined(LLVM_ON_UNIX)
const char EnvPathSeparator = ':';
#elif defined (LLVM_ON_WIN32)
const char EnvPathSeparator = ';';
#endif
/// This static constructor (factory) will attempt to locate a program in
/// the operating system's file system using some pre-determined set of
/// locations to search (e.g. the PATH on Unix). Paths with slashes are