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/tools/llvm-db/Commands.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/tools/llvm-db/Commands.cpp')
-rw-r--r-- | llvm/tools/llvm-db/Commands.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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()); } |