[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:
Davide Italiano
2015-12-08 02:45:59 +00:00
parent 758f7794bb
commit b13edeb9b5
3 changed files with 10 additions and 21 deletions

View File

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