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 | a518bb79b1854ad624e5223508813f9aaa77a547 (patch) | |
| tree | e1217ca872827e6a88e8c28324a702f5b0fe5cfd /llvm/lib/System/Win32/Path.inc | |
| parent | e0680b7e7ab4a2a118c43012c8094f02044875cc (diff) | |
| download | bcm5719-llvm-a518bb79b1854ad624e5223508813f9aaa77a547.tar.gz bcm5719-llvm-a518bb79b1854ad624e5223508813f9aaa77a547.zip | |
Make getDirnameSep a static method (not part of Path's interface).
llvm-svn: 49354
Diffstat (limited to 'llvm/lib/System/Win32/Path.inc')
| -rw-r--r-- | llvm/lib/System/Win32/Path.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc index 35bae337da7..357cb2f27ee 100644 --- a/llvm/lib/System/Win32/Path.inc +++ b/llvm/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 { |

