summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-29 16:48:16 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-29 16:48:16 +0000
commit78b899f665df76357742c9036cf959c80ba098a7 (patch)
treea545b34bb9f2a44f106735b9b7f3da9e4dd1e69f /llvm/lib
parent0f92f0e5190136660d02c32bb3cb20961bf38728 (diff)
downloadbcm5719-llvm-78b899f665df76357742c9036cf959c80ba098a7.tar.gz
bcm5719-llvm-78b899f665df76357742c9036cf959c80ba098a7.zip
For PR789:
Updates for change in interface of getFileStatus method of sys::Path class. llvm-svn: 35458
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Bytecode/Archive/Archive.cpp2
-rw-r--r--llvm/lib/Bytecode/Archive/ArchiveWriter.cpp2
-rw-r--r--llvm/lib/Support/FileUtilities.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Bytecode/Archive/Archive.cpp b/llvm/lib/Bytecode/Archive/Archive.cpp
index 1c0b205e9e2..aff7ab8f1e6 100644
--- a/llvm/lib/Bytecode/Archive/Archive.cpp
+++ b/llvm/lib/Bytecode/Archive/Archive.cpp
@@ -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;
}
diff --git a/llvm/lib/Bytecode/Archive/ArchiveWriter.cpp b/llvm/lib/Bytecode/Archive/ArchiveWriter.cpp
index ff8c5f0348c..9d5b025b057 100644
--- a/llvm/lib/Bytecode/Archive/ArchiveWriter.cpp
+++ b/llvm/lib/Bytecode/Archive/ArchiveWriter.cpp
@@ -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;
diff --git a/llvm/lib/Support/FileUtilities.cpp b/llvm/lib/Support/FileUtilities.cpp
index adee22d3191..a0cdf09deec 100644
--- a/llvm/lib/Support/FileUtilities.cpp
+++ b/llvm/lib/Support/FileUtilities.cpp
@@ -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
OpenPOWER on IntegriCloud