llvm-objdump: return non-zero exit code for certain cases of invalid input
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 4 Jun 2015 18:34:11 +0000 (18:34 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 4 Jun 2015 18:34:11 +0000 (18:34 +0000)
commit1b77d22c66ea20b487e0ab85099367b0c57ebc73
treec91e3d7869416ee0581034bc9dacacf702f4221f
parent15df8bebdcf74b1a1342d48ac24f4f132a2fce83
llvm-objdump: return non-zero exit code for certain cases of invalid input

* If the input file is missing;
* If the type of input object file can't be recognized;
* If the object file can't be parsed correctly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239065 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/invalid-input.test [new file with mode: 0644]
tools/llvm-objdump/llvm-objdump.cpp