diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-21 02:04:43 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-21 02:04:43 +0000 |
commit | c295914b7ad5a4bd626e85ee4b3563c0e42a93be (patch) | |
tree | 91a8c8c846aafd23202bc11315cc42e0c6c78e8c /llvm/lib/Support/GraphWriter.cpp | |
parent | 756b0076e16b9b0b146640ec8d0ffe0efa8beb1c (diff) | |
download | bcm5719-llvm-c295914b7ad5a4bd626e85ee4b3563c0e42a93be.tar.gz bcm5719-llvm-c295914b7ad5a4bd626e85ee4b3563c0e42a93be.zip |
For 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.
llvm-svn: 29785
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
-rw-r--r-- | llvm/lib/Support/GraphWriter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp index f3255d815c6..152261fbac6 100644 --- a/llvm/lib/Support/GraphWriter.cpp +++ b/llvm/lib/Support/GraphWriter.cpp @@ -59,7 +59,9 @@ void llvm::DisplayGraph(const sys::Path &Filename) { 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 |