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)
commit50d0fbd2b95dc931fe1803468628a7e53ad1bbee
treea7dc95b93931c0a6f800aefa40edebe351ada64b
parent713bfbb2d415a73e0dd3e20ba7b37bf0493368bd
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.

llvm-svn: 239065
llvm/test/tools/llvm-objdump/invalid-input.test [new file with mode: 0644]
llvm/tools/llvm-objdump/llvm-objdump.cpp