[llvm-commits] CVS: llvm/tools/llvm-db/Commands.cpp
Reid Spencer
reid at x10sys.com
Sat Apr 7 11:53:40 PDT 2007
Changes in directory llvm/tools/llvm-db:
Commands.cpp updated: 1.11 -> 1.12
---
Log message:
For PR1291: http://llvm.org/PR1291 :
Change uses of sys::Path class to sys::PathWithStatus in those places where
the file status information is needed.
---
Diffs of the changes: (+2 -1)
Commands.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/tools/llvm-db/Commands.cpp
diff -u llvm/tools/llvm-db/Commands.cpp:1.11 llvm/tools/llvm-db/Commands.cpp:1.12
--- llvm/tools/llvm-db/Commands.cpp:1.11 Thu Mar 29 14:05:44 2007
+++ llvm/tools/llvm-db/Commands.cpp Sat Apr 7 13:53:16 2007
@@ -51,7 +51,8 @@
// If the program has been modified, reload it!
sys::Path Program(Dbg.getProgramPath());
std::string Err;
- const sys::FileStatus *Status = Program.getFileStatus(false, &Err);
+ const sys::FileStatus *Status =
+ sys::PathWithStatus(Program).getFileStatus(false, &Err);
if (!Status)
throw Err;
if (TheProgramInfo->getProgramTimeStamp() != Status->getTimestamp()) {
More information about the llvm-commits
mailing list