From aa95684acdbc0dd1778bdc3a202686db1d23dcab Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 13 Dec 2004 17:01:53 +0000 Subject: 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 --- llvm/tools/llvm-db/Commands.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/tools/llvm-db/Commands.cpp') diff --git a/llvm/tools/llvm-db/Commands.cpp b/llvm/tools/llvm-db/Commands.cpp index de7fdf604b7..37f8a782095 100644 --- a/llvm/tools/llvm-db/Commands.cpp +++ b/llvm/tools/llvm-db/Commands.cpp @@ -49,8 +49,8 @@ void CLIDebugger::startProgramRunning() { 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 @@ void CLIDebugger::startProgramRunning() { TheProgramInfo = 0; CurrentFile = 0; - Dbg.loadProgram(Program); + Dbg.loadProgram(Program.toString()); TheProgramInfo = new ProgramInfo(Dbg.getProgram()); } -- cgit v1.2.3