Fix the sys::Path::getSuffix() implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52288 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Argyrios Kyrtzidis
2008-06-15 15:15:19 +00:00
parent 1662183a83
commit fc19988bcb
3 changed files with 32 additions and 5 deletions

View File

@ -185,11 +185,6 @@ bool Path::hasMagicNumber(const std::string &Magic) const {
return false;
}
std::string
Path::getSuffix() const {
return path.substr(path.rfind('.') + 1);
}
static void getPathList(const char*path, std::vector<Path>& Paths) {
const char* at = path;
const char* delim = strchr(at, PathSeparator);