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 | 21b76a9b9915202c9c4084072357b7ed32e60f9d (patch) | |
tree | 59b639d250e081baf03dca1815d0168713f26ada /llvm/lib | |
parent | ceeb918dd105248af4b7c3ba4ffcd4b582ea4daf (diff) | |
download | bcm5719-llvm-21b76a9b9915202c9c4084072357b7ed32e60f9d.tar.gz bcm5719-llvm-21b76a9b9915202c9c4084072357b7ed32e60f9d.zip |
For PR1291:
Change uses of sys::Path class to sys::PathWithStatus in those places where
the file status information is needed.
llvm-svn: 35743
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Debugger/ProgramInfo.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Support/FileUtilities.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Debugger/ProgramInfo.cpp b/llvm/lib/Debugger/ProgramInfo.cpp index d811f6075be..833fe7ca167 100644 --- a/llvm/lib/Debugger/ProgramInfo.cpp +++ b/llvm/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/llvm/lib/Support/FileUtilities.cpp b/llvm/lib/Support/FileUtilities.cpp index 1ea5ddada9e..1736b0d5c31 100644 --- a/llvm/lib/Support/FileUtilities.cpp +++ b/llvm/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); |