mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Support/PathV2: Add missing has_relative_path impl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122243 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0d7ce5ffa4
commit
2d484eb88d
@ -502,6 +502,13 @@ bool has_root_path(const Twine &path) {
|
|||||||
return !root_path(p).empty();
|
return !root_path(p).empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool has_relative_path(const Twine &path) {
|
||||||
|
SmallString<128> path_storage;
|
||||||
|
StringRef p = path.toStringRef(path_storage);
|
||||||
|
|
||||||
|
return !relative_path(p).empty();
|
||||||
|
}
|
||||||
|
|
||||||
bool has_filename(const Twine &path) {
|
bool has_filename(const Twine &path) {
|
||||||
SmallString<128> path_storage;
|
SmallString<128> path_storage;
|
||||||
StringRef p = path.toStringRef(path_storage);
|
StringRef p = path.toStringRef(path_storage);
|
||||||
|
Loading…
Reference in New Issue
Block a user