aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-25 01:10:36 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-25 01:10:36 +0000
commit593fcb56b37857d64e58ac3be5277d3cfccb9492 (patch)
treef7a20aa5a6c844348d7f548b776e1055f4dd1937 /include
parent8ba825e2ea09ec16e9cab3525ed3d7c6145123a5 (diff)
downloadexternal_llvm-593fcb56b37857d64e58ac3be5277d3cfccb9492.zip
external_llvm-593fcb56b37857d64e58ac3be5277d3cfccb9492.tar.gz
external_llvm-593fcb56b37857d64e58ac3be5277d3cfccb9492.tar.bz2
Create a replacement for sys::Path::PathSeparator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/Program.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Support/Program.h b/include/llvm/Support/Program.h
index 64a7e55..5134351 100644
--- a/include/llvm/Support/Program.h
+++ b/include/llvm/Support/Program.h
@@ -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