summaryrefslogtreecommitdiffstats
path: root/lib/System/Path.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-06-15 15:15:19 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-06-15 15:15:19 +0000
commitfc19988bcbe6cfbe4668c50cd9689a711cc26cdd (patch)
tree6554a7d91fba95551482d0f47239babb2f6c7471 /lib/System/Path.cpp
parent1662183a83063313af24708c323817daf4bad195 (diff)
downloadexternal_llvm-fc19988bcbe6cfbe4668c50cd9689a711cc26cdd.zip
external_llvm-fc19988bcbe6cfbe4668c50cd9689a711cc26cdd.tar.gz
external_llvm-fc19988bcbe6cfbe4668c50cd9689a711cc26cdd.tar.bz2
Fix the sys::Path::getSuffix() implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Path.cpp')
-rw-r--r--lib/System/Path.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp
index 03cdbf7..af400e9 100644
--- a/lib/System/Path.cpp
+++ b/lib/System/Path.cpp
@@ -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);