OSDN Git Service

[llvm-readobj] Print error when executed with no input files
authorElvina Yakubova <elvina.yakubova@huawei.com>
Mon, 20 Jul 2020 07:47:11 +0000 (08:47 +0100)
committerJames Henderson <james.henderson@sony.com>
Mon, 20 Jul 2020 09:39:05 +0000 (10:39 +0100)
commitdf952cb914eae5264603bd9fadffcc7626355c51
treec3309a79a22e8148e99f825a8da6752f0575ff31
parentb36a3e61400aed89d6abe4bd30b35af40805d4cb
[llvm-readobj] Print error when executed with no input files

This patch changes llvm-readelf (and llvm-readobj for consistency)
behavior to print an error when executed with no input files.

Reading from stdin can be achieved via a '-' for the input
object.

Fixes https://bugs.llvm.org/show_bug.cgi?id=46400

Differential Revision: https://reviews.llvm.org/D83704

Reviewed by: jhenderson, MaskRay, sbc, jyknight
llvm/docs/CommandGuide/llvm-readelf.rst
llvm/docs/CommandGuide/llvm-readobj.rst
llvm/docs/ReleaseNotes.rst
llvm/test/tools/llvm-readobj/basic.test
llvm/tools/llvm-readobj/llvm-readobj.cpp