diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-12 14:32:51 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-12 14:32:51 +0000 |
commit | 46e2ea64cc9d0b4642000ab11769860823d39659 (patch) | |
tree | 3c83cd2f51c11588cae29c8b9918fe383562ee92 /llvm/lib/Support/Unix | |
parent | 5e754550621e2539e416ed129a4c4f5fdf9c4bcd (diff) | |
download | bcm5719-llvm-46e2ea64cc9d0b4642000ab11769860823d39659.tar.gz bcm5719-llvm-46e2ea64cc9d0b4642000ab11769860823d39659.zip |
Remove Path::getSuffix.
llvm-svn: 183833
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index b17b9f91dec..f604a79849c 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -318,23 +318,6 @@ Path Path::GetMainExecutable(const char *argv0, void *MainAddr) { return Path(); } - -StringRef -Path::getSuffix() 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(); - else - return StringRef(path).substr(dot + 1); -} - bool Path::getMagicNumber(std::string &Magic, unsigned len) const { assert(len < 1024 && "Request for magic string too long"); char Buf[1025]; |