mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
reduce indentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101692 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b221ecbc62
commit
459e13a9ce
@ -130,28 +130,28 @@ void llvm::DisplayGraph(const sys::Path &Filename, bool wait,
|
||||
if (sys::Program::ExecuteAndWait(prog, &args[0], 0, 0, 0, 0, &ErrMsg)) {
|
||||
errs() << "Error viewing graph " << Filename.str() << ": '"
|
||||
<< ErrMsg << "\n";
|
||||
} else {
|
||||
errs() << " done. \n";
|
||||
return;
|
||||
}
|
||||
errs() << " done. \n";
|
||||
|
||||
sys::Path gv(LLVM_PATH_GV);
|
||||
args.clear();
|
||||
args.push_back(gv.c_str());
|
||||
args.push_back(PSFilename.c_str());
|
||||
args.push_back("--spartan");
|
||||
args.push_back(0);
|
||||
|
||||
ErrMsg.clear();
|
||||
if (wait) {
|
||||
if (sys::Program::ExecuteAndWait(gv, &args[0],0,0,0,0,&ErrMsg))
|
||||
errs() << "Error viewing graph: " << ErrMsg << "\n";
|
||||
Filename.eraseFromDisk();
|
||||
PSFilename.eraseFromDisk();
|
||||
}
|
||||
else {
|
||||
sys::Program::ExecuteNoWait(gv, &args[0],0,0,0,&ErrMsg);
|
||||
errs() << "Remember to erase graph files: " << Filename.str() << " "
|
||||
<< PSFilename.str() << "\n";
|
||||
}
|
||||
sys::Path gv(LLVM_PATH_GV);
|
||||
args.clear();
|
||||
args.push_back(gv.c_str());
|
||||
args.push_back(PSFilename.c_str());
|
||||
args.push_back("--spartan");
|
||||
args.push_back(0);
|
||||
|
||||
ErrMsg.clear();
|
||||
if (wait) {
|
||||
if (sys::Program::ExecuteAndWait(gv, &args[0],0,0,0,0,&ErrMsg))
|
||||
errs() << "Error viewing graph: " << ErrMsg << "\n";
|
||||
Filename.eraseFromDisk();
|
||||
PSFilename.eraseFromDisk();
|
||||
}
|
||||
else {
|
||||
sys::Program::ExecuteNoWait(gv, &args[0],0,0,0,&ErrMsg);
|
||||
errs() << "Remember to erase graph files: " << Filename.str() << " "
|
||||
<< PSFilename.str() << "\n";
|
||||
}
|
||||
#elif HAVE_DOTTY
|
||||
sys::Path dotty(LLVM_PATH_DOTTY);
|
||||
|
Loading…
Reference in New Issue
Block a user