diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-07 18:53:16 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-07 18:53:16 +0000 |
commit | c74b4615071151b20fb1f82b11f85c2a1ba53e75 (patch) | |
tree | f81aa2aac2c66a8eea00ff3a4b1027891af7a072 /lib | |
parent | 2ae9d11b7c0fd54e0b5298fb4fcf17b6ee9d5c91 (diff) | |
download | external_llvm-c74b4615071151b20fb1f82b11f85c2a1ba53e75.zip external_llvm-c74b4615071151b20fb1f82b11f85c2a1ba53e75.tar.gz external_llvm-c74b4615071151b20fb1f82b11f85c2a1ba53e75.tar.bz2 |
For PR1291:
Change uses of sys::Path class to sys::PathWithStatus in those places where
the file status information is needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Debugger/ProgramInfo.cpp | 2 | ||||
-rw-r--r-- | lib/Support/FileUtilities.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Debugger/ProgramInfo.cpp b/lib/Debugger/ProgramInfo.cpp index d811f60..833fe7c 100644 --- a/lib/Debugger/ProgramInfo.cpp +++ b/lib/Debugger/ProgramInfo.cpp @@ -195,7 +195,7 @@ void SourceFunctionInfo::getSourceLocation(unsigned &RetLineNo, ProgramInfo::ProgramInfo(Module *m) : M(m), ProgramTimeStamp(0,0) { assert(M && "Cannot create program information with a null module!"); const sys::FileStatus *Stat; - Stat = sys::Path(M->getModuleIdentifier()).getFileStatus(); + Stat = sys::PathWithStatus(M->getModuleIdentifier()).getFileStatus(); if (Stat) ProgramTimeStamp = Stat->getTimestamp(); diff --git a/lib/Support/FileUtilities.cpp b/lib/Support/FileUtilities.cpp index 1ea5dda..1736b0d 100644 --- a/lib/Support/FileUtilities.cpp +++ b/lib/Support/FileUtilities.cpp @@ -148,8 +148,8 @@ static void PadFileIfNeeded(char *&FileStart, char *&FileEnd, char *&FP) { /// error occurs, allowing the caller to distinguish between a failed diff and a /// file system error. /// -int llvm::DiffFilesWithTolerance(const sys::Path &FileA, - const sys::Path &FileB, +int llvm::DiffFilesWithTolerance(const sys::PathWithStatus &FileA, + const sys::PathWithStatus &FileB, double AbsTol, double RelTol, std::string *Error) { const sys::FileStatus *FileAStat = FileA.getFileStatus(false, Error); |