[llvm-objdump] Use appropriate helper. NFC.
authorDavide Italiano <davide@freebsd.org>
Mon, 21 Dec 2015 14:10:54 +0000 (14:10 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 21 Dec 2015 14:10:54 +0000 (14:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256156 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-objdump/MachODump.cpp

index defd2d4..a2f3bc8 100644 (file)
@@ -1650,8 +1650,7 @@ void llvm::ParseInputMachO(StringRef Filename) {
       errs() << "llvm-objdump: '" << Filename << "': "
              << "Object is not a Mach-O file type.\n";
   } else
-    errs() << "llvm-objdump: '" << Filename << "': "
-           << "Unrecognized file type.\n";
+    report_error(Filename, object_error::invalid_file_type);
 }
 
 typedef std::pair<uint64_t, const char *> BindInfoEntry;