Changes in directory llvm/lib/Support:
CommandLine.cpp updated: 1.71 -> 1.72 GraphWriter.cpp updated: 1.2 -> 1.3 --- Log message: For PR797: http://llvm.org/PR797 : Make sys::Program::ExecuteAndWait not throw exceptions and update any affected code. It now return -9999 to signal that the program couldn't be executed. Only one case (in bugpoint) actually examines the result code. --- Diffs of the changes: (+4 -2) CommandLine.cpp | 2 +- GraphWriter.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) Index: llvm/lib/Support/CommandLine.cpp diff -u llvm/lib/Support/CommandLine.cpp:1.71 llvm/lib/Support/CommandLine.cpp:1.72 --- llvm/lib/Support/CommandLine.cpp:1.71 Wed Aug 2 15:15:56 2006 +++ llvm/lib/Support/CommandLine.cpp Sun Aug 20 21:04:43 2006 @@ -31,7 +31,7 @@ using namespace cl; // Globals for name and overview of program -static const char *ProgramName = "<unknown>"; +static const char *ProgramName = "<premain>"; static const char *ProgramOverview = 0; // This collects additional help to be printed. Index: llvm/lib/Support/GraphWriter.cpp diff -u llvm/lib/Support/GraphWriter.cpp:1.2 llvm/lib/Support/GraphWriter.cpp:1.3 --- llvm/lib/Support/GraphWriter.cpp:1.2 Fri Jul 28 17:21:01 2006 +++ llvm/lib/Support/GraphWriter.cpp Sun Aug 20 21:04:43 2006 @@ -59,7 +59,9 @@ args.push_back(PSFilename.c_str()); args.push_back(0); - sys::Program::ExecuteAndWait(gv, &args[0]); + if (sys::Program::ExecuteAndWait(gv, &args[0])) { + std::cerr << "Error viewing graph: 'gv' not in path?\n"; + } } PSFilename.eraseFromDisk(); #elif HAVE_DOTTY _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits