mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
For PR797:
Adjust usage of the ExecuteAndWait function to use the last argument which is the ErrMsg string. This is necessitated because this function no longer throws exceptions on error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29791 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -355,9 +355,10 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
// Tell the driver to do its thing
|
||||
int result = CD->execute(InpList, sys::Path(OutputFilename));
|
||||
std::string ErrMsg;
|
||||
int result = CD->execute(InpList, sys::Path(OutputFilename), ErrMsg);
|
||||
if (result != 0) {
|
||||
throw std::string("Error executing actions. Terminated.");
|
||||
std::cerr << argv[0] << ": " << ErrMsg << '\n';
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user