Create a replacement for sys::Path::PathSeparator.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 25 Jun 2013 01:10:36 +0000 (01:10 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 25 Jun 2013 01:10:36 +0000 (01:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184806 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Program.h

index 64a7e55da19c8364a967e3385c33dafc32e50588..513435187f4887cdfbf43f22097ff2528df2f998 100644 (file)
 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