summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-11 19:29:48 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-11 19:29:48 +0000
commit4d725f66bd9352ebf7bb48172f77299bc9434cae (patch)
treefecf4ceda879ab43ddc9356e48b6e208a058b613 /llvm/lib/Support/Unix
parent7fc279aecb36b6611e386900a1d447df0a0b8fd6 (diff)
downloadbcm5719-llvm-4d725f66bd9352ebf7bb48172f77299bc9434cae.tar.gz
bcm5719-llvm-4d725f66bd9352ebf7bb48172f77299bc9434cae.zip
Remove Path::getBasename.
llvm-svn: 183779
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Path.inc16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 13bf9aaef92..a442b7f7ead 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -324,22 +324,6 @@ StringRef Path::getDirname() const {
}
StringRef
-Path::getBasename() const {
- // Find the last slash
- std::string::size_type slash = path.rfind('/');
- if (slash == std::string::npos)
- slash = 0;
- else
- slash++;
-
- std::string::size_type dot = path.rfind('.');
- if (dot == std::string::npos || dot < slash)
- return StringRef(path).substr(slash);
- else
- return StringRef(path).substr(slash, dot - slash);
-}
-
-StringRef
Path::getSuffix() const {
// Find the last slash
std::string::size_type slash = path.rfind('/');
OpenPOWER on IntegriCloud