summaryrefslogtreecommitdiff
path: root/tools/llvm-db
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
commit9d88d1aaab145e18c8e0fe93544f8a1ff0474866 (patch)
tree76878e5c34075b7fb47f4cc78dc6636840922da0 /tools/llvm-db
parent4251ce4b10a35552df67ea624b180ad247960eef (diff)
downloadllvm-9d88d1aaab145e18c8e0fe93544f8a1ff0474866.tar.gz
llvm-9d88d1aaab145e18c8e0fe93544f8a1ff0474866.tar.bz2
llvm-9d88d1aaab145e18c8e0fe93544f8a1ff0474866.tar.xz
For PR351: \
The getFileTimestamp and getFileSize functions have been removed from \ FileUtilities.{h,cpp}. They are replaced by Path::getTimestamp and \ Path::getSize,respectively. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-db')
-rw-r--r--tools/llvm-db/Commands.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvm-db/Commands.cpp b/tools/llvm-db/Commands.cpp
index de7fdf604b..37f8a78209 100644
--- a/tools/llvm-db/Commands.cpp
+++ b/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());
}