From c74b4615071151b20fb1f82b11f85c2a1ba53e75 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 7 Apr 2007 18:53:16 +0000 Subject: For PR1291: Change uses of sys::Path class to sys::PathWithStatus in those places where the file status information is needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35743 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-db/Commands.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/llvm-db/Commands.cpp') diff --git a/tools/llvm-db/Commands.cpp b/tools/llvm-db/Commands.cpp index 5a8aa2f132..487d5ec536 100644 --- a/tools/llvm-db/Commands.cpp +++ b/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()) { -- cgit v1.2.3-18-g5258