From fd65d0d80e980280183a3c319f08e8e5f61da609 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 19 Sep 2017 20:58:57 +0000 Subject: [PATCH] llvm-dwarfdump: un-hide more command line options git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313673 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tools/llvm-dwarfdump/cmdline.test | 5 +++++ tools/llvm-dwarfdump/llvm-dwarfdump.cpp | 13 +++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/test/tools/llvm-dwarfdump/cmdline.test b/test/tools/llvm-dwarfdump/cmdline.test index 2e57fd2cc36..be1be6bbdb1 100644 --- a/test/tools/llvm-dwarfdump/cmdline.test +++ b/test/tools/llvm-dwarfdump/cmdline.test @@ -1,8 +1,13 @@ RUN: llvm-dwarfdump -h 2>&1 | FileCheck --check-prefix=HELP %s RUN: llvm-dwarfdump --help 2>&1 | FileCheck --check-prefix=HELP %s HELP: USAGE: llvm-dwarfdump{{[^ ]*}} [options] +HELP-NOT: -reverse-iterate HELP: Section-specific Dump Options HELP: -debug-info - Dump the .debug_info section +HELP: -eh-frame +HELP: -show-children +HELP: -show-parents +HELP: -summarize-types HELP-NOT: -reverse-iterate RUN: llvm-dwarfdump --version 2>&1 | FileCheck --check-prefix=VERSION %s diff --git a/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/tools/llvm-dwarfdump/llvm-dwarfdump.cpp index cb29e368f10..61d77aa76f4 100644 --- a/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ b/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -114,7 +114,8 @@ static alias DumpAllAlias("a", desc("Alias for -all"), aliasopt(DumpAll)); // Options for dumping specific sections. static unsigned DumpType = DIDT_Null; -static std::array, (unsigned)DIDT_ID_Count> DumpOffsets; +static std::array, (unsigned)DIDT_ID_Count> + DumpOffsets; #define HANDLE_DWARF_SECTION(ENUM_NAME, ELF_NAME, CMDLINE_NAME) \ static opt Dump##ENUM_NAME( \ CMDLINE_NAME, desc("Dump the " ELF_NAME " section"), \ @@ -123,6 +124,7 @@ static std::array, (unsigned)DIDT_ID_Count> DumpOffsets #undef HANDLE_DWARF_SECTION static alias DumpDebugFrameAlias("eh-frame", desc("Alias for -debug-frame"), + NotHidden, cat(DwarfDumpCategory), aliasopt(DumpDebugFrame)); static opt DumpUUID("uuid", desc("Show the UUID for each architecture"), cat(DwarfDumpCategory)); @@ -131,18 +133,21 @@ static alias DumpUUIDAlias("u", desc("Alias for -uuid"), aliasopt(DumpUUID)); static opt ShowChildren("show-children", desc("Show a debug info entry's children when selectively " - "printing with the = option")); + "printing with the = option"), + cat(DwarfDumpCategory)); static alias ShowChildrenAlias("c", desc("Alias for -show-children"), aliasopt(ShowChildren)); static opt ShowParents("show-parents", desc("Show a debug info entry's parents when selectively " - "printing with the = option")); + "printing with the = option"), + cat(DwarfDumpCategory)); static alias ShowParentsAlias("p", desc("Alias for -show-parents"), aliasopt(ShowParents)); static opt SummarizeTypes("summarize-types", - desc("Abbreviate the description of type unit entries")); + desc("Abbreviate the description of type unit entries"), + cat(DwarfDumpCategory)); static opt Verify("verify", desc("Verify the DWARF debug info"), cat(DwarfDumpCategory)); static opt Quiet("quiet", desc("Use with -verify to not emit to STDOUT."), -- 2.11.0