diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-07 18:53:16 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-07 18:53:16 +0000 |
commit | 21b76a9b9915202c9c4084072357b7ed32e60f9d (patch) | |
tree | 59b639d250e081baf03dca1815d0168713f26ada /llvm/tools/llvm-db/Commands.cpp | |
parent | ceeb918dd105248af4b7c3ba4ffcd4b582ea4daf (diff) | |
download | bcm5719-llvm-21b76a9b9915202c9c4084072357b7ed32e60f9d.tar.gz bcm5719-llvm-21b76a9b9915202c9c4084072357b7ed32e60f9d.zip |
For PR1291:
Change uses of sys::Path class to sys::PathWithStatus in those places where
the file status information is needed.
llvm-svn: 35743
Diffstat (limited to 'llvm/tools/llvm-db/Commands.cpp')
-rw-r--r-- | llvm/tools/llvm-db/Commands.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-db/Commands.cpp b/llvm/tools/llvm-db/Commands.cpp index 5a8aa2f132f..487d5ec5360 100644 --- a/llvm/tools/llvm-db/Commands.cpp +++ b/llvm/tools/llvm-db/Commands.cpp @@ -51,7 +51,8 @@ void CLIDebugger::startProgramRunning() { // 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()) { |