[llvm-commits] [llvm] r115620 - /llvm/trunk/lib/Support/GraphWriter.cpp
Dan Gohman
gohman at apple.com
Tue Oct 5 08:30:27 PDT 2010
Author: djg
Date: Tue Oct 5 10:30:27 2010
New Revision: 115620
URL: http://llvm.org/viewvc/llvm-project?rev=115620&view=rev
Log:
After printing "Running 'Graphviz' program... " and running the
Graphviz program, print something with a newline, to avoid leaving
the line unfinished.
Modified:
llvm/trunk/lib/Support/GraphWriter.cpp
Modified: llvm/trunk/lib/Support/GraphWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/GraphWriter.cpp?rev=115620&r1=115619&r2=115620&view=diff
==============================================================================
--- llvm/trunk/lib/Support/GraphWriter.cpp (original)
+++ llvm/trunk/lib/Support/GraphWriter.cpp Tue Oct 5 10:30:27 2010
@@ -63,11 +63,13 @@
args.push_back(0);
errs() << "Running 'Graphviz' program... ";
- if (sys::Program::ExecuteAndWait(Graphviz, &args[0],0,0,0,0,&ErrMsg))
+ if (sys::Program::ExecuteAndWait(Graphviz, &args[0],0,0,0,0,&ErrMsg)) {
errs() << "Error viewing graph " << Filename.str() << ": " << ErrMsg
<< "\n";
- else
- Filename.eraseFromDisk();
+ return;
+ }
+ Filename.eraseFromDisk();
+ errs() << " done. \n";
#elif HAVE_XDOT_PY
std::vector<const char*> args;
@@ -87,11 +89,13 @@
errs() << "Running 'xdot.py' program... ";
if (sys::Program::ExecuteAndWait(sys::Path(LLVM_PATH_XDOT_PY),
- &args[0],0,0,0,0,&ErrMsg))
+ &args[0],0,0,0,0,&ErrMsg)) {
errs() << "Error viewing graph " << Filename.str() << ": " << ErrMsg
<< "\n";
- else
- Filename.eraseFromDisk();
+ return;
+ }
+ Filename.eraseFromDisk();
+ errs() << " done. \n";
#elif (HAVE_GV && (HAVE_DOT || HAVE_FDP || HAVE_NEATO || \
HAVE_TWOPI || HAVE_CIRCO))
More information about the llvm-commits
mailing list