summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-db/Commands.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-13 17:01:53 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-13 17:01:53 +0000
commitaa95684acdbc0dd1778bdc3a202686db1d23dcab (patch)
treed00a193bdbeab107afa125f9a9f46857b5d55613 /llvm/tools/llvm-db/Commands.cpp
parent0b4a4bf96a7ac9b039d822fc0d07160728047044 (diff)
downloadbcm5719-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.cpp6
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());
}
OpenPOWER on IntegriCloud