[llvm] r256156 - [llvm-objdump] Use appropriate helper. NFC.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 21 06:10:55 PST 2015
Author: davide
Date: Mon Dec 21 08:10:54 2015
New Revision: 256156
URL: http://llvm.org/viewvc/llvm-project?rev=256156&view=rev
Log:
[llvm-objdump] Use appropriate helper. NFC.
Modified:
llvm/trunk/tools/llvm-objdump/MachODump.cpp
Modified: llvm/trunk/tools/llvm-objdump/MachODump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/MachODump.cpp?rev=256156&r1=256155&r2=256156&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/MachODump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/MachODump.cpp Mon Dec 21 08:10:54 2015
@@ -1650,8 +1650,7 @@ void llvm::ParseInputMachO(StringRef Fil
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;
More information about the llvm-commits
mailing list