[PATCH] D83704: [llvm-readobj] Print help when executed with no input files

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 14 00:22:41 PDT 2020


jhenderson added a comment.

Thanks for looking at this. Is there a specific test-case for llvm-readobj's behaviour with no input file? You should add one if not.

GNU readelf prints the following warning in this case `readelf: Warning: Nothing to do.` and returns 1. I'm happy for us to deviate from GNU in this case slightly, perhaps as suggested above with the simple error message, but we definitely should return non-zero.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83704/new/

https://reviews.llvm.org/D83704





More information about the llvm-commits mailing list