summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32/Path.inc
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-07 22:01:32 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-07 22:01:32 +0000
commita518bb79b1854ad624e5223508813f9aaa77a547 (patch)
treee1217ca872827e6a88e8c28324a702f5b0fe5cfd /llvm/lib/System/Win32/Path.inc
parente0680b7e7ab4a2a118c43012c8094f02044875cc (diff)
downloadbcm5719-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.inc4
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 {
OpenPOWER on IntegriCloud