[llvm-commits] CVS: llvm/tools/llvm-db/Commands.cpp
Reid Spencer
reid at x10sys.com
Mon Dec 13 09:02:07 PST 2004
Changes in directory llvm/tools/llvm-db:
Commands.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 -3)
Index: llvm/tools/llvm-db/Commands.cpp
diff -u llvm/tools/llvm-db/Commands.cpp:1.7 llvm/tools/llvm-db/Commands.cpp:1.8
--- llvm/tools/llvm-db/Commands.cpp:1.7 Fri Nov 19 13:45:44 2004
+++ llvm/tools/llvm-db/Commands.cpp Mon Dec 13 11:01:53 2004
@@ -49,8 +49,8 @@
eliminateRunInfo();
// If the program has been modified, reload it!
- std::string Program = Dbg.getProgramPath();
- if (TheProgramInfo->getProgramTimeStamp() != getFileTimestamp(Program)) {
+ sys::Path Program (Dbg.getProgramPath());
+ if (TheProgramInfo->getProgramTimeStamp() != Program.getTimestamp()) {
std::cout << "'" << Program << "' has changed; re-reading program.\n";
// Unload an existing program. This kills the program if necessary.
@@ -59,7 +59,7 @@
TheProgramInfo = 0;
CurrentFile = 0;
- Dbg.loadProgram(Program);
+ Dbg.loadProgram(Program.toString());
TheProgramInfo = new ProgramInfo(Dbg.getProgram());
}
More information about the llvm-commits
mailing list