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 | fcfaf51e523f68a47a02b92243b29f6d302be10a (patch) | |
| tree | a3b3c83982abc73acc45ece7011341c3249e103a /llvm/lib/System | |
| parent | d66bb225fd0e1e55959b3e709dd74509ce941f29 (diff) | |
| download | bcm5719-llvm-fcfaf51e523f68a47a02b92243b29f6d302be10a.tar.gz bcm5719-llvm-fcfaf51e523f68a47a02b92243b29f6d302be10a.zip | |
Path: Add GetEXESuffix() to complement GetDLLSuffix().
llvm-svn: 118042
Diffstat (limited to 'llvm/lib/System')
| -rw-r--r-- | llvm/lib/System/Unix/Path.inc | 4 | ||||
| -rw-r--r-- | llvm/lib/System/Win32/Path.inc | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/System/Unix/Path.inc b/llvm/lib/System/Unix/Path.inc index 4c97c4b71cc..44c81a2f3f9 100644 --- a/llvm/lib/System/Unix/Path.inc +++ b/llvm/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/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc index 7e2275105a3..a4d55a0f048 100644 --- a/llvm/lib/System/Win32/Path.inc +++ b/llvm/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); |

