mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
After printing "Running 'Graphviz' program... " and running the
Graphviz program, print something with a newline, to avoid leaving the line unfinished. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115620 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8f413fa9c0
commit
644801a199
@ -63,11 +63,13 @@ void llvm::DisplayGraph(const sys::Path &Filename, bool wait,
|
||||
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 @@ void llvm::DisplayGraph(const sys::Path &Filename, bool wait,
|
||||
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user