[llvm] r313673 - llvm-dwarfdump: un-hide more command line options
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 19 13:58:57 PDT 2017
Author: adrian
Date: Tue Sep 19 13:58:57 2017
New Revision: 313673
URL: http://llvm.org/viewvc/llvm-project?rev=313673&view=rev
Log:
llvm-dwarfdump: un-hide more command line options
Modified:
llvm/trunk/test/tools/llvm-dwarfdump/cmdline.test
llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
Modified: llvm/trunk/test/tools/llvm-dwarfdump/cmdline.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-dwarfdump/cmdline.test?rev=313673&r1=313672&r2=313673&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-dwarfdump/cmdline.test (original)
+++ llvm/trunk/test/tools/llvm-dwarfdump/cmdline.test Tue Sep 19 13:58:57 2017
@@ -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] <input object files or .dSYM bundles>
+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
Modified: llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp?rev=313673&r1=313672&r2=313673&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp (original)
+++ llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp Tue Sep 19 13:58:57 2017
@@ -114,7 +114,8 @@ static alias DumpAllAlias("a", desc("Ali
// Options for dumping specific sections.
static unsigned DumpType = DIDT_Null;
-static std::array<llvm::Optional<uint64_t>, (unsigned)DIDT_ID_Count> DumpOffsets;
+static std::array<llvm::Optional<uint64_t>, (unsigned)DIDT_ID_Count>
+ DumpOffsets;
#define HANDLE_DWARF_SECTION(ENUM_NAME, ELF_NAME, CMDLINE_NAME) \
static opt<OffsetOption> Dump##ENUM_NAME( \
CMDLINE_NAME, desc("Dump the " ELF_NAME " section"), \
@@ -123,6 +124,7 @@ static std::array<llvm::Optional<uint64_
#undef HANDLE_DWARF_SECTION
static alias DumpDebugFrameAlias("eh-frame", desc("Alias for -debug-frame"),
+ NotHidden, cat(DwarfDumpCategory),
aliasopt(DumpDebugFrame));
static opt<bool> DumpUUID("uuid", desc("Show the UUID for each architecture"),
cat(DwarfDumpCategory));
@@ -131,18 +133,21 @@ static alias DumpUUIDAlias("u", desc("Al
static opt<bool>
ShowChildren("show-children",
desc("Show a debug info entry's children when selectively "
- "printing with the =<offset> option"));
+ "printing with the =<offset> option"),
+ cat(DwarfDumpCategory));
static alias ShowChildrenAlias("c", desc("Alias for -show-children"),
aliasopt(ShowChildren));
static opt<bool>
ShowParents("show-parents",
desc("Show a debug info entry's parents when selectively "
- "printing with the =<offset> option"));
+ "printing with the =<offset> option"),
+ cat(DwarfDumpCategory));
static alias ShowParentsAlias("p", desc("Alias for -show-parents"),
aliasopt(ShowParents));
static opt<bool>
SummarizeTypes("summarize-types",
- desc("Abbreviate the description of type unit entries"));
+ desc("Abbreviate the description of type unit entries"),
+ cat(DwarfDumpCategory));
static opt<bool> Verify("verify", desc("Verify the DWARF debug info"),
cat(DwarfDumpCategory));
static opt<bool> Quiet("quiet", desc("Use with -verify to not emit to STDOUT."),
More information about the llvm-commits
mailing list