Support/PathV2: Add missing has_relative_path impl.
llvm-svn: 122243
This commit is contained in:
parent
70db5e7cb2
commit
6d4b7e7e83
|
@ -502,6 +502,13 @@ bool has_root_path(const Twine &path) {
|
|||
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) {
|
||||
SmallString<128> path_storage;
|
||||
StringRef p = path.toStringRef(path_storage);
|
||||
|
|
Loading…
Reference in New Issue