mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Remove the program class.
It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just those two functions and make Execute and Wait implementations details. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -69,7 +69,7 @@ static bool LLVM_ATTRIBUTE_UNUSED
|
||||
ExecGraphViewer(const sys::Path &ExecPath, std::vector<const char*> &args,
|
||||
const sys::Path &Filename, bool wait, std::string &ErrMsg) {
|
||||
if (wait) {
|
||||
if (sys::Program::ExecuteAndWait(ExecPath, &args[0],0,0,0,0,&ErrMsg)) {
|
||||
if (sys::ExecuteAndWait(ExecPath, &args[0],0,0,0,0,&ErrMsg)) {
|
||||
errs() << "Error: " << ErrMsg << "\n";
|
||||
return false;
|
||||
}
|
||||
@@ -77,7 +77,7 @@ ExecGraphViewer(const sys::Path &ExecPath, std::vector<const char*> &args,
|
||||
errs() << " done. \n";
|
||||
}
|
||||
else {
|
||||
sys::Program::ExecuteNoWait(ExecPath, &args[0],0,0,0,&ErrMsg);
|
||||
sys::ExecuteNoWait(ExecPath, &args[0],0,0,0,&ErrMsg);
|
||||
errs() << "Remember to erase graph file: " << Filename.str() << "\n";
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user