mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 08:24:12 +00:00
For PR789:
Updates for change in interface of getFileStatus method of sys::Path class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35458 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69cce815e7
commit
5ba2b702c2
@ -116,7 +116,7 @@ bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) {
|
||||
path.getMagicNumber(magic,4);
|
||||
signature = magic.c_str();
|
||||
std::string err;
|
||||
if (path.getFileStatus(info, ErrMsg))
|
||||
if (path.getFileStatus(info, false, ErrMsg))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -163,7 +163,7 @@ Archive::addFileBefore(const sys::Path& filePath, iterator where,
|
||||
|
||||
mbr->data = 0;
|
||||
mbr->path = filePath;
|
||||
if (mbr->path.getFileStatus(mbr->info, ErrMsg))
|
||||
if (mbr->path.getFileStatus(mbr->info, false, ErrMsg))
|
||||
return true;
|
||||
|
||||
unsigned flags = 0;
|
||||
|
@ -116,7 +116,7 @@ bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) {
|
||||
path.getMagicNumber(magic,4);
|
||||
signature = magic.c_str();
|
||||
std::string err;
|
||||
if (path.getFileStatus(info, ErrMsg))
|
||||
if (path.getFileStatus(info, false, ErrMsg))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -163,7 +163,7 @@ Archive::addFileBefore(const sys::Path& filePath, iterator where,
|
||||
|
||||
mbr->data = 0;
|
||||
mbr->path = filePath;
|
||||
if (mbr->path.getFileStatus(mbr->info, ErrMsg))
|
||||
if (mbr->path.getFileStatus(mbr->info, false, ErrMsg))
|
||||
return true;
|
||||
|
||||
unsigned flags = 0;
|
||||
|
@ -153,9 +153,9 @@ int llvm::DiffFilesWithTolerance(const sys::Path &FileA,
|
||||
double AbsTol, double RelTol,
|
||||
std::string *Error) {
|
||||
sys::FileStatus FileAStat, FileBStat;
|
||||
if (FileA.getFileStatus(FileAStat, Error))
|
||||
if (FileA.getFileStatus(FileAStat, false, Error))
|
||||
return 2;
|
||||
if (FileB.getFileStatus(FileBStat, Error))
|
||||
if (FileB.getFileStatus(FileBStat, false, Error))
|
||||
return 2;
|
||||
|
||||
// Check for zero length files because some systems croak when you try to
|
||||
|
Loading…
x
Reference in New Issue
Block a user