Index: llvm/docs/CommandGuide/llvm-dwarfdump.rst =================================================================== --- llvm/docs/CommandGuide/llvm-dwarfdump.rst +++ llvm/docs/CommandGuide/llvm-dwarfdump.rst @@ -149,7 +149,7 @@ Display the version of the tool. -.. option:: --debug-abbrev, --debug-addr, --debug-aranges, --debug-cu-index, --debug-frame[=], --debug-gnu-pubnames, --debug-gnu-pubtypes, --debug-info [=], --debug-line [=], --debug-line-str, --debug-loc [=], --debug-loclists [=], --debug-macro, --debug-names, --debug-pubnames, --debug-pubtypes, --debug-ranges, --debug-rnglists, --debug-str, --debug-str-offsets, --debug-tu-index, --debug-types [=], --eh-frame [=], --gdb-index, --apple-names, --apple-types, --apple-namespaces, --apple-objc +.. option:: --debug-abbrev, --debug-addr, --debug-aranges, --debug-cu-index, --debug-frame [=], --debug-gnu-pubnames, --debug-gnu-pubtypes, --debug-info [=], --debug-line [=], --debug-line-str, --debug-loc [=], --debug-loclists [=], --debug-macro, --debug-names, --debug-pubnames, --debug-pubtypes, --debug-ranges, --debug-rnglists, --debug-str, --debug-str-offsets, --debug-tu-index, --debug-types [=], --eh-frame [=], --gdb-index, --apple-names, --apple-types, --apple-namespaces, --apple-objc Dump the specified DWARF section by name. Only the `.debug_info` section is shown by default. Some entries @@ -158,6 +158,8 @@ respective section. When an offset is provided, only the entry at that offset will be dumped, else the entire section will be dumped. + + The :option:`--debug-macro` option prints both the .debug_macro and the .debug_macinfo sections. The :option:`--debug-frame` and :option:`--eh-frame` options are aliases, in cases where both sections are present one command outputs both. .. option:: @ @@ -168,7 +170,7 @@ FORMAT OF STATISTICS OUTPUT --------------------------- -The ::option:`--statistics` option generates single-line JSON output +The :option:`--statistics` option generates single-line JSON output representing quality metrics of the processed debug info. These metrics are useful to compare changes between two compilers, particularly for judging the effect that a change to the compiler has on the debug info quality. Index: llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp =================================================================== --- llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -169,7 +169,7 @@ static alias FindAlias("f", desc("Alias for --find."), aliasopt(Find), cl::NotHidden); static opt IgnoreCase("ignore-case", - desc("Ignore case distinctions when searching."), + desc("Ignore case distinctions when using --name."), value_desc("i"), cat(DwarfDumpCategory)); static alias IgnoreCaseAlias("i", desc("Alias for --ignore-case."), aliasopt(IgnoreCase), cl::NotHidden); @@ -192,11 +192,12 @@ cl::value_desc("filename"), cat(DwarfDumpCategory)); static alias OutputFilenameAlias("out-file", desc("Alias for -o."), aliasopt(OutputFilename)); -static opt - UseRegex("regex", - desc("Treat any strings as regular expressions when " - "searching instead of just as an exact string match."), - cat(DwarfDumpCategory)); +static opt UseRegex( + "regex", + desc("Treat any strings as regular " + "expressions when searching with --name. If --ignore-case is also " + "specified, the regular expression becomes case-insensitive."), + cat(DwarfDumpCategory)); static alias RegexAlias("x", desc("Alias for --regex"), aliasopt(UseRegex), cl::NotHidden); static opt