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:
Reid Spencer
2006-08-21 06:04:45 +00:00
parent 4ce5dc6377
commit 8ea5ecb056
10 changed files with 109 additions and 49 deletions

View File

@ -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;
}