diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 17:01:53 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 17:01:53 +0000 |
commit | 9d88d1aaab145e18c8e0fe93544f8a1ff0474866 (patch) | |
tree | 76878e5c34075b7fb47f4cc78dc6636840922da0 /lib/Debugger/ProgramInfo.cpp | |
parent | 4251ce4b10a35552df67ea624b180ad247960eef (diff) |
For PR351: \
The getFileTimestamp and getFileSize functions have been removed from \
FileUtilities.{h,cpp}. They are replaced by Path::getTimestamp and \
Path::getSize,respectively.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Debugger/ProgramInfo.cpp')
-rw-r--r-- | lib/Debugger/ProgramInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Debugger/ProgramInfo.cpp b/lib/Debugger/ProgramInfo.cpp index c6e5d32b66..c0d85f97e4 100644 --- a/lib/Debugger/ProgramInfo.cpp +++ b/lib/Debugger/ProgramInfo.cpp @@ -236,9 +236,10 @@ void SourceFunctionInfo::getSourceLocation(unsigned &RetLineNo, // ProgramInfo implementation // -ProgramInfo::ProgramInfo(Module *m) : M(m) { +ProgramInfo::ProgramInfo(Module *m) : M(m), ProgramTimeStamp(0,0) { assert(M && "Cannot create program information with a null module!"); - ProgramTimeStamp = getFileTimestamp(M->getModuleIdentifier()); + sys::Path modulePath(M->getModuleIdentifier()); + ProgramTimeStamp = modulePath.getTimestamp(); SourceFilesIsComplete = false; SourceFunctionsIsComplete = false; |