Changes in directory llvm/tools/llvm-db:
Commands.cpp updated: 1.9 -> 1.10 --- Log message: Change Path::getStatusInfo to return a boolean and error string on an error instead of throwing an exception. This reduces the amount of code that is exposed to exceptions (e.g. FileUtilities), though it is clearly only one step along the way. --- Diffs of the changes: (+6 -2) Commands.cpp | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) Index: llvm/tools/llvm-db/Commands.cpp diff -u llvm/tools/llvm-db/Commands.cpp:1.9 llvm/tools/llvm-db/Commands.cpp:1.10 --- llvm/tools/llvm-db/Commands.cpp:1.9 Thu Apr 21 18:59:36 2005 +++ llvm/tools/llvm-db/Commands.cpp Fri Jul 28 17:03:44 2006 @@ -49,8 +49,12 @@ eliminateRunInfo(); // If the program has been modified, reload it! - sys::Path Program (Dbg.getProgramPath()); - if (TheProgramInfo->getProgramTimeStamp() != Program.getTimestamp()) { + sys::Path Program(Dbg.getProgramPath()); + sys::FileStatus Status; + std::string Err; + if (Program.getFileStatus(Status, &Err)) + throw Err; + if (TheProgramInfo->getProgramTimeStamp() != Status.getTimestamp()) { std::cout << "'" << Program << "' has changed; re-reading program.\n"; // Unload an existing program. This kills the program if necessary. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits