[llvm] r184806 - Create a replacement for sys::Path::PathSeparator.
Rafael Espindola
rafael.espindola at gmail.com
Mon Jun 24 18:10:37 PDT 2013
Author: rafael
Date: Mon Jun 24 20:10:36 2013
New Revision: 184806
URL: http://llvm.org/viewvc/llvm-project?rev=184806&view=rev
Log:
Create a replacement for sys::Path::PathSeparator.
Modified:
llvm/trunk/include/llvm/Support/Program.h
Modified: llvm/trunk/include/llvm/Support/Program.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Program.h?rev=184806&r1=184805&r2=184806&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Program.h (original)
+++ llvm/trunk/include/llvm/Support/Program.h Mon Jun 24 20:10:36 2013
@@ -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
More information about the llvm-commits
mailing list