[llvm-objdump/MachO] Don't cut'n'paste the same code over and over.
Use the appropriate helper instead. llvm-svn: 254990
This commit is contained in:
@@ -252,7 +252,7 @@ void llvm::error(std::error_code EC) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
static void report_error(StringRef File, std::error_code EC) {
|
||||
void llvm::report_error(StringRef File, std::error_code EC) {
|
||||
assert(EC);
|
||||
errs() << ToolName << ": '" << File << "': " << EC.message() << ".\n";
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user