[PATCH] D63565: [llvm-dwarfdump] Remove unnecessary explicit -h behaviour
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 21 04:19:05 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL364029: [llvm-dwarfdump] Remove unnecessary explicit -h behaviour (authored by jhenderson, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D63565?vs=205962&id=205967#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63565/new/
https://reviews.llvm.org/D63565
Files:
llvm/trunk/test/Support/check-default-options.txt
llvm/trunk/test/tools/llvm-dwarfdump/cmdline.test
llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
Index: llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
===================================================================
--- llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
+++ llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
@@ -92,8 +92,6 @@
using namespace cl;
OptionCategory DwarfDumpCategory("Specific Options");
-static opt<bool> Help("h", desc("Alias for -help"), Hidden,
- cat(DwarfDumpCategory));
static list<std::string>
InputFilenames(Positional, desc("<input object files or .dSYM bundles>"),
ZeroOrMore, cat(DwarfDumpCategory));
@@ -575,11 +573,6 @@
"pretty-print DWARF debug information in object files"
" and debug info archives.\n");
- if (Help) {
- PrintHelpMessage(/*Hidden =*/false, /*Categorized =*/true);
- return 0;
- }
-
// FIXME: Audit interactions between these two options and make them
// compatible.
if (Diff && Verbose) {
Index: llvm/trunk/test/tools/llvm-dwarfdump/cmdline.test
===================================================================
--- llvm/trunk/test/tools/llvm-dwarfdump/cmdline.test
+++ llvm/trunk/test/tools/llvm-dwarfdump/cmdline.test
@@ -3,6 +3,10 @@
HELP: USAGE: llvm-dwarfdump{{[^ ]*}} [options] <input object files or .dSYM bundles>
HELP: Color Options
HELP: -color
+HELP: Generic Options
+HELP: -help
+HELP: -help-list
+HELP: -version
HELP: Section-specific Dump Options
HELP: -debug-info - Dump the .debug_info section
HELP: -eh-frame
Index: llvm/trunk/test/Support/check-default-options.txt
===================================================================
--- llvm/trunk/test/Support/check-default-options.txt
+++ llvm/trunk/test/Support/check-default-options.txt
@@ -2,17 +2,8 @@
# RUN: llvm-readobj --help-hidden %t | FileCheck --check-prefix=CHECK-READOBJ %s
# RUN: llvm-tblgen --help-hidden %t | FileCheck --check-prefix=CHECK-TBLGEN %s
# RUN: llvm-opt-report --help-hidden %t | FileCheck --check-prefix=CHECK-OPT-RPT %s
-# RUN: llvm-dwarfdump --help-hidden %t | FileCheck --check-prefix=CHECK-DWARF %s
-# RUN: llvm-dwarfdump -h %t | FileCheck --check-prefix=CHECK-DWARF-H %s
-
# CHECK-OBJDUMP: -h - Alias for --section-headers
# CHECK-READOBJ: -h - Alias for --file-headers
# CHECK-TBLGEN: -h - Alias for --help
# CHECK-OPT-RPT: -h - Alias for --help
-# CHECK-DWARF: -h - Alias for -help
-
-# llvm-dwarfdump declares `-h` option and prints special help in that case,
-# which is weird, but makes for a good test, i.e., shows the default `-h`
-# wasn't used.
-# CHECK-DWARF-H-NOT: --help-list - Display list of available options (--help-list-hidden for more)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63565.205967.patch
Type: text/x-patch
Size: 2658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190621/79451866/attachment.bin>
More information about the llvm-commits
mailing list