Support/PathV2: Add filename implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120546 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael J. Spencer
2010-12-01 03:18:17 +00:00
parent ff25116a09
commit a979355994
2 changed files with 8 additions and 0 deletions

View File

@ -553,6 +553,11 @@ error_code native(const Twine &path, SmallVectorImpl<char> &result) {
return make_error_code(errc::success);
}
error_code filename(const StringRef &path, StringRef &result) {
result = *(--end(path));
return make_error_code(errc::success);
}
}
}
}