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/Unix/Path.inc | |
parent | cf55c8e221c1d31a361f99ee49078d261cdf431c (diff) | |
download | llvm-9b01cc0ede3bfef32ce46159670dedc3e9769a64.tar.gz llvm-9b01cc0ede3bfef32ce46159670dedc3e9769a64.tar.bz2 llvm-9b01cc0ede3bfef32ce46159670dedc3e9769a64.tar.xz |
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/Unix/Path.inc')
-rw-r--r-- | lib/System/Unix/Path.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc index fe2e3c6777..aca4b936e8 100644 --- a/lib/System/Unix/Path.inc +++ b/lib/System/Unix/Path.inc @@ -277,7 +277,9 @@ Path Path::GetMainExecutable(const char *argv0, void *MainAddr) { } -std::string Path::getDirname() const { return getDirnameCharSep('/'); } +std::string Path::getDirname() const { + return getDirnameCharSep(path, '/'); +} std::string Path::getBasename() const { |