OSDN Git Service

Change the llvm-obdump(1) behavior with the -macho flag and inappropriate file types.
authorKevin Enderby <enderby@apple.com>
Mon, 30 Jan 2017 20:53:17 +0000 (20:53 +0000)
committerKevin Enderby <enderby@apple.com>
Mon, 30 Jan 2017 20:53:17 +0000 (20:53 +0000)
commitf20c973bf81e953c2f29f007c77fb1b488907542
treedff4a33b2218b01628bcae492034f451a43b5555
parentf06702d6ea27692ec36a960dd2928acd9fe984ce
Change the llvm-obdump(1) behavior with the -macho flag and inappropriate file types.

To better match the old darwin otool(1) behavior, when llvm-obdump(1) is used
with the -macho option and the input file is not an object file simply print
the file name and this message:

foo: is not an object file

and continue on to process other input files.  Also in this case don’t exit
non-zero.  This should help in some OSS projects' with autoconf scripts
that are expecting the old darwin otool(1) behavior.

rdar://26828015

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293547 91177308-0d34-0410-b5e6-96231b3b80d8
test/Object/macho-invalid.test
test/tools/llvm-objdump/malformed-macho.test
tools/llvm-objdump/MachODump.cpp