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 | |
parent | 46388526963aba92344ee8ebd9e86d3556baa088 (diff) |
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')
-rw-r--r-- | lib/System/Unix/Path.inc | 4 | ||||
-rw-r--r-- | lib/System/Win32/Path.inc | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc index 4c97c4b71c..44c81a2f3f 100644 --- a/lib/System/Unix/Path.inc +++ b/lib/System/Unix/Path.inc @@ -78,6 +78,10 @@ using namespace sys; const char sys::PathSeparator = ':'; +StringRef Path::GetEXESuffix() { + return ""; +} + Path::Path(StringRef p) : path(p) {} diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index 7e2275105a..a4d55a0f04 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); |