[llvm-commits] CVS: llvm/lib/Debugger/ProgramInfo.cpp

Reid Spencer reid at x10sys.com
Mon Dec 13 09:02:07 PST 2004



Changes in directory llvm/lib/Debugger:

ProgramInfo.cpp updated: 1.7 -> 1.8
---
Log message:

For PR351: http://llvm.cs.uiuc.edu/PR351 : \
The getFileTimestamp and getFileSize functions have been removed from  \
FileUtilities.{h,cpp}. They are replaced by Path::getTimestamp and  \
Path::getSize,respectively.

---
Diffs of the changes:  (+3 -2)

Index: llvm/lib/Debugger/ProgramInfo.cpp
diff -u llvm/lib/Debugger/ProgramInfo.cpp:1.7 llvm/lib/Debugger/ProgramInfo.cpp:1.8
--- llvm/lib/Debugger/ProgramInfo.cpp:1.7	Sun Dec 12 20:59:15 2004
+++ llvm/lib/Debugger/ProgramInfo.cpp	Mon Dec 13 11:01:53 2004
@@ -236,9 +236,10 @@
 // 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;






More information about the llvm-commits mailing list