From 725bc3eb0d5cdce1952e2848c1f170c808d0acde Mon Sep 17 00:00:00 2001 From: gbreynoo Date: Wed, 12 May 2021 12:04:54 +0100 Subject: [PATCH] [llvm-symbolizer] Place Mach-O options into the Mach-O option group. In the help output of other tools and in the symbolizer command guide, Mach-O specific options are in their own section. This change fixes the symbolizer help output to be consistent. Differential Revision: https://reviews.llvm.org/D102178 --- llvm/tools/llvm-symbolizer/Opts.td | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/llvm/tools/llvm-symbolizer/Opts.td b/llvm/tools/llvm-symbolizer/Opts.td index 227969e..c4b94dc9 100644 --- a/llvm/tools/llvm-symbolizer/Opts.td +++ b/llvm/tools/llvm-symbolizer/Opts.td @@ -13,19 +13,28 @@ multiclass Eq { class F: Flag<["--", "-"], name>, HelpText; +def grp_mach_o : OptionGroup<"kind">, + HelpText<"llvm-symbolizer Mach-O Specific Options">; + def addresses : F<"addresses", "Show address before line information">; defm adjust_vma : Eq<"adjust-vma", "Add specified offset to object file addresses">, MetaVarName<"">; def basenames : Flag<["--"], "basenames">, HelpText<"Strip directory names from paths">; defm debug_file_directory : Eq<"debug-file-directory", "Path to directory where to look for debug files">, MetaVarName<"">; -defm default_arch : Eq<"default-arch", "Default architecture (for multi-arch objects)">; +defm default_arch + : Eq<"default-arch", "Default architecture (for multi-arch objects)">, + Group; defm demangle : B<"demangle", "Demangle function names", "Don't demangle function names">; def functions : F<"functions", "Print function name for a given address">; def functions_EQ : Joined<["--"], "functions=">, HelpText<"Print function name for a given address">, Values<"none,short,linkage">; def help : F<"help", "Display this help">; defm dwp : Eq<"dwp", "Path to DWP file to be use for any split CUs">, MetaVarName<"">; -defm dsym_hint : Eq<"dsym-hint", "Path to .dSYM bundles to search for debug info for the object files">, MetaVarName<"">; +defm dsym_hint + : Eq<"dsym-hint", + "Path to .dSYM bundles to search for debug info for the object files">, + MetaVarName<"">, + Group; defm fallback_debug_path : Eq<"fallback-debug-path", "Fallback path for debug binaries">, MetaVarName<"">; defm inlines : B<"inlines", "Print all inlined frames for a given address", "Do not print inlined frames">; -- 2.7.4