[llvm] r244019 - [llvm-objdump] Call exit(1) on error, i.e. fail early.
Rafael EspĂndola
rafael.espindola at gmail.com
Wed Aug 5 05:30:58 PDT 2015
> -bool llvm::error(std::error_code EC) {
> +void llvm::error(std::error_code EC) {
> if (!EC)
> - return false;
> + return;
>
> outs() << ToolName << ": error reading file: " << EC.message() << ".\n";
> outs().flush();
> - ReturnValue = EXIT_FAILURE;
> - return true;
> }
This should be calling exit(1) (or report_error).
Cheers,
Rafael
More information about the llvm-commits
mailing list