OSDN Git Service

[llvm-dwarfdump] Remove unnecessary explicit -h behaviour
authorJames Henderson <jh7370@my.bristol.ac.uk>
Fri, 21 Jun 2019 11:22:20 +0000 (11:22 +0000)
committerJames Henderson <jh7370@my.bristol.ac.uk>
Fri, 21 Jun 2019 11:22:20 +0000 (11:22 +0000)
commit9cce93fd45cde604f2185ebf5e43fb9f1d0a564b
treeafcb17813f7dd735ebcd791578c07dab0298aec2
parent217fe0963fb572cf3c3634d88fc61eb99c13f250
[llvm-dwarfdump] Remove unnecessary explicit -h behaviour

--help and -h are automatically supported by the command-line parser,
unless overridden by the tool. The behaviour of the PrintHelpMessage
being used for -h prior to this patch is subtly different to that
provided by --help automatically (it omits certain elements of help text
and options, such as --help-list), so overriding the default is not
desirable, without good reason. This patch removes the explicit
specification of -h and its behaviour, so that the default behaviour is
used.

Reviewed by: hintonda

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364029 91177308-0d34-0410-b5e6-96231b3b80d8
test/Support/check-default-options.txt
test/tools/llvm-dwarfdump/cmdline.test
tools/llvm-dwarfdump/llvm-dwarfdump.cpp