mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Add missing implementation of 'sys::path::is_other' to the support library.
The header claims that this function exists, but the linker wasn't too happy about it not being in the library. llvm-svn: 224527
This commit is contained in:
parent
cd3fff8406
commit
b2c776af89
@ -888,6 +888,14 @@ bool is_other(file_status status) {
|
||||
!is_directory(status);
|
||||
}
|
||||
|
||||
std::error_code is_other(const Twine &Path, bool &Result) {
|
||||
file_status FileStatus;
|
||||
if (std::error_code EC = status(Path, FileStatus))
|
||||
return EC;
|
||||
Result = is_other(FileStatus);
|
||||
return std::error_code();
|
||||
}
|
||||
|
||||
void directory_entry::replace_filename(const Twine &filename, file_status st) {
|
||||
SmallString<128> path(Path.begin(), Path.end());
|
||||
path::remove_filename(path);
|
||||
|
Loading…
Reference in New Issue
Block a user