diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-11-02 20:32:26 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-11-02 20:32:26 +0000 |
commit | f5a95ce0d42ddfac8a5a14701188e94ce5dc282f (patch) | |
tree | 1d7feff6996c3d403efbce512ccaa18daefe1cd6 /lib/System/Win32 | |
parent | 46388526963aba92344ee8ebd9e86d3556baa088 (diff) | |
download | external_llvm-f5a95ce0d42ddfac8a5a14701188e94ce5dc282f.zip external_llvm-f5a95ce0d42ddfac8a5a14701188e94ce5dc282f.tar.gz external_llvm-f5a95ce0d42ddfac8a5a14701188e94ce5dc282f.tar.bz2 |
Path: Add GetEXESuffix() to complement GetDLLSuffix().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32')
-rw-r--r-- | lib/System/Win32/Path.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index 7e22751..a4d55a0 100644 --- a/lib/System/Win32/Path.inc +++ b/lib/System/Win32/Path.inc @@ -45,8 +45,13 @@ static void FlipBackSlashes(std::string& s) { namespace llvm { namespace sys { + const char PathSeparator = ';'; +StringRef Path::GetEXESuffix() { + return "exe"; +} + Path::Path(llvm::StringRef p) : path(p) { FlipBackSlashes(path); |