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 | aa95684acdbc0dd1778bdc3a202686db1d23dcab (patch) | |
tree | d00a193bdbeab107afa125f9a9f46857b5d55613 /llvm/lib/Debugger/ProgramInfo.cpp | |
parent | 0b4a4bf96a7ac9b039d822fc0d07160728047044 (diff) | |
download | bcm5719-llvm-aa95684acdbc0dd1778bdc3a202686db1d23dcab.tar.gz bcm5719-llvm-aa95684acdbc0dd1778bdc3a202686db1d23dcab.zip |
For PR351: \
The getFileTimestamp and getFileSize functions have been removed from \
FileUtilities.{h,cpp}. They are replaced by Path::getTimestamp and \
Path::getSize,respectively.
llvm-svn: 18892
Diffstat (limited to 'llvm/lib/Debugger/ProgramInfo.cpp')
-rw-r--r-- | llvm/lib/Debugger/ProgramInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Debugger/ProgramInfo.cpp b/llvm/lib/Debugger/ProgramInfo.cpp index c6e5d32b666..c0d85f97e45 100644 --- a/llvm/lib/Debugger/ProgramInfo.cpp +++ b/llvm/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; |