diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-07 22:01:32 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-07 22:01:32 +0000 |
commit | 9b01cc0ede3bfef32ce46159670dedc3e9769a64 (patch) | |
tree | db65b3617c28ba9aa88c3f60781f477c516c97d2 /lib/System/Win32 | |
parent | cf55c8e221c1d31a361f99ee49078d261cdf431c (diff) | |
download | external_llvm-9b01cc0ede3bfef32ce46159670dedc3e9769a64.zip external_llvm-9b01cc0ede3bfef32ce46159670dedc3e9769a64.tar.gz external_llvm-9b01cc0ede3bfef32ce46159670dedc3e9769a64.tar.bz2 |
Make getDirnameSep a static method (not part of Path's interface).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32')
-rw-r--r-- | lib/System/Win32/Path.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index 35bae33..357cb2f 100644 --- a/lib/System/Win32/Path.inc +++ b/lib/System/Win32/Path.inc @@ -229,7 +229,9 @@ Path::isRootDirectory() const { return len > 0 && path[len-1] == '/'; } -std::string Path::getDirname() const { return getDirnameCharSep('\\'); } +std::string Path::getDirname() const { + return getDirnameCharSep(path, '\\'); +} std::string Path::getBasename() const { |