[lld] r333607 - Add "(default)" to default options

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed May 30 16:32:41 PDT 2018


Author: ruiu
Date: Wed May 30 16:32:41 2018
New Revision: 333607

URL: http://llvm.org/viewvc/llvm-project?rev=333607&view=rev
Log:
Add "(default)" to default options

This improves the help message shown for `ld.lld --help`.

Differential Revision: https://reviews.llvm.org/D47562

Modified:
    lld/trunk/ELF/Options.td

Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=333607&r1=333606&r2=333607&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Wed May 30 16:32:41 2018
@@ -23,7 +23,7 @@ def Bsymbolic: F<"Bsymbolic">, HelpText<
 def Bsymbolic_functions: F<"Bsymbolic-functions">,
   HelpText<"Bind defined function symbols locally">;
 
-def Bdynamic: F<"Bdynamic">, HelpText<"Link against shared libraries">;
+def Bdynamic: F<"Bdynamic">, HelpText<"Link against shared libraries (default)">;
 
 def Bstatic: F<"Bstatic">, HelpText<"Do not link against shared libraries">;
 
@@ -32,7 +32,7 @@ def build_id: F<"build-id">, HelpText<"G
 def build_id_eq: J<"build-id=">, HelpText<"Generate build ID note">;
 
 defm check_sections : B<"check-sections",
-    "Check section addresses for overlaps",
+    "Check section addresses for overlaps (default)",
     "Do not check section addresses for overlaps">;
 
 defm compress_debug_sections:
@@ -53,7 +53,7 @@ defm Ttext: Eq<"Ttext", "Same as --secti
 
 defm allow_multiple_definition: B<"allow-multiple-definition",
     "Allow multiple definitions",
-    "Do not allow multiple definitions">;
+    "Do not allow multiple definitions (default)">;
 
 defm apply_dynamic_relocs: B<"apply-dynamic-relocs",
     "Apply dynamic relocations to place",
@@ -61,7 +61,7 @@ defm apply_dynamic_relocs: B<"apply-dyna
 
 defm as_needed: B<"as-needed",
     "Only set DT_NEEDED for shared libraries if used",
-    "Always set DT_NEEDED for shared libraries">;
+    "Always set DT_NEEDED for shared libraries (default)">;
 
 defm call_graph_ordering_file:
   Eq<"call-graph-ordering-file", "Layout sections to optimize the given callgraph">;
@@ -84,7 +84,7 @@ defm define_common: B<"define-common",
     "Do not assign space to common symbols">;
 
 defm demangle: B<"demangle",
-    "Demangle symbol names",
+    "Demangle symbol names (default)",
     "Do not demangle symbol names">;
 
 def disable_new_dtags: F<"disable-new-dtags">,
@@ -96,7 +96,7 @@ def discard_locals: F<"discard-locals">,
   HelpText<"Delete temporary local symbols">;
 
 def discard_none: F<"discard-none">,
-  HelpText<"Keep all symbols in the symbol table">;
+  HelpText<"Keep all symbols in the symbol table (default)">;
 
 defm dynamic_linker: Eq<"dynamic-linker", "Which dynamic linker to use">;
 
@@ -109,7 +109,7 @@ defm eh_frame_hdr: B<"eh-frame-hdr",
 def emit_relocs: F<"emit-relocs">, HelpText<"Generate relocations in output">;
 
 def enable_new_dtags: F<"enable-new-dtags">,
-  HelpText<"Enable new dynamic tags">;
+  HelpText<"Enable new dynamic tags (default)">;
 
 def end_group: F<"end-group">,
   HelpText<"Ignored for compatibility with GNU unless you pass --warn-backrefs">;
@@ -130,14 +130,14 @@ defm exclude_libs: Eq<"exclude-libs", "E
 
 defm export_dynamic: B<"export-dynamic",
     "Put symbols in the dynamic symbol table",
-    "Do not put symbols in the dynamic symbol table">;
+    "Do not put symbols in the dynamic symbol table (default)">;
 
 defm export_dynamic_symbol:
   Eq<"export-dynamic-symbol", "Put a symbol in the dynamic symbol table">;
 
 defm fatal_warnings: B<"fatal-warnings",
     "Treat warnings as errors",
-    "Do not treat warnings as errors">;
+    "Do not treat warnings as errors (default)">;
 
 defm filter: Eq<"filter", "Set DT_FILTER field to the specified name">;
 
@@ -151,14 +151,14 @@ defm format: Eq<"format", "Change the in
 
 defm gc_sections: B<"gc-sections",
     "Enable garbage collection of unused sections",
-    "Disable garbage collection of unused sections">;
+    "Disable garbage collection of unused sections (default)">;
 
 defm gdb_index: B<"gdb-index",
     "Generate .gdb_index section",
-    "Do not generate .gdb_index section">;
+    "Do not generate .gdb_index section (default)">;
 
 defm gnu_unique: B<"gnu-unique",
-  "Enable STB_GNU_UNIQUE symbol binding",
+  "Enable STB_GNU_UNIQUE symbol binding (default)",
   "Disable STB_GNU_UNIQUE symbol binding">;
 
 defm hash_style: Eq<"hash-style", "Specify hash style (sysv, gnu or both)">;
@@ -167,7 +167,7 @@ def help: F<"help">, HelpText<"Print opt
 
 def icf_all: F<"icf=all">, HelpText<"Enable identical code folding">;
 
-def icf_none: F<"icf=none">, HelpText<"Disable identical code folding">;
+def icf_none: F<"icf=none">, HelpText<"Disable identical code folding (default)">;
 
 def ignore_function_address_equality: F<"ignore-function-address-equality">,
   HelpText<"lld can break the address equality of functions">;
@@ -192,7 +192,7 @@ def m: JoinedOrSeparate<["-"], "m">, Hel
 defm Map: Eq<"Map", "Print a link map to the specified file">;
 
 defm merge_exidx_entries: B<"merge-exidx-entries",
-    "Enable merging .ARM.exidx entries",
+    "Enable merging .ARM.exidx entries (default)",
     "Disable merging .ARM.exidx entries">;
 
 def nostdlib: F<"nostdlib">,
@@ -234,15 +234,15 @@ defm pack_dyn_relocs:
 
 defm pie: B<"pie",
     "Create a position independent executable",
-    "Do not create a position independent executable">;
+    "Do not create a position independent executable (default)">;
 
 defm print_gc_sections: B<"print-gc-sections",
     "List removed unused sections",
-    "Do not list removed unused sections">;
+    "Do not list removed unused sections (default)">;
 
 defm print_icf_sections: B<"print-icf-sections",
     "List identical folded sections",
-    "Do not list identical folded sections">;
+    "Do not list identical folded sections (default)">;
 
 def print_map: F<"print-map">,
   HelpText<"Print a link map to the standard output">;
@@ -286,14 +286,14 @@ defm sysroot: Eq<"sysroot", "Set the sys
 
 def target1_rel: F<"target1-rel">, HelpText<"Interpret R_ARM_TARGET1 as R_ARM_REL32">;
 
-def target1_abs: F<"target1-abs">, HelpText<"Interpret R_ARM_TARGET1 as R_ARM_ABS32">;
+def target1_abs: F<"target1-abs">, HelpText<"Interpret R_ARM_TARGET1 as R_ARM_ABS32 (default)">;
 
 defm target2:
   Eq<"target2", "Interpret R_ARM_TARGET2 as <type>, where <type> is one of rel, abs, or got-rel">,
   MetaVarName<"<type>">;
 
 defm threads: B<"threads",
-    "Run the linker multi-threaded",
+    "Run the linker multi-threaded (default)",
     "Do not run the linker multi-threaded">;
 
 def trace: F<"trace">, HelpText<"Print the names of the input files">;
@@ -306,7 +306,7 @@ defm unresolved_symbols:
   Eq<"unresolved-symbols", "Determine how to handle unresolved symbols">;
 
 defm undefined_version: B<"undefined-version",
-  "Allow unused version in version script",
+  "Allow unused version in version script (default)",
   "Report version scripts that refer undefined symbols">;
 
 defm rsp_quoting:
@@ -322,14 +322,14 @@ defm version_script: Eq<"version-script"
 
 defm warn_backrefs: B<"warn-backrefs",
     "Warn about backward symbol references to fetch archive members",
-    "Do not warn about backward symbol references to fetch archive members">;
+    "Do not warn about backward symbol references to fetch archive members (default)">;
 
 defm warn_common: B<"warn-common",
     "Warn about duplicate common symbols",
-    "Do not warn about duplicate common symbols">;
+    "Do not warn about duplicate common symbols (default)">;
 
 defm warn_symbol_ordering : B<"warn-symbol-ordering",
-    "Warn about problems with the symbol ordering file",
+    "Warn about problems with the symbol ordering file (default)",
     "Do not warn about problems with the symbol ordering file">;
 
 def warn_unresolved_symbols: F<"warn-unresolved-symbols">,
@@ -337,7 +337,7 @@ def warn_unresolved_symbols: F<"warn-unr
 
 defm whole_archive: B<"whole-archive",
     "Force load of all members in a static library",
-    "Do not force load of all members in a static library">;
+    "Do not force load of all members in a static library (default)">;
 
 defm wrap: Eq<"wrap", "Use wrapper functions for symbol">,
   MetaVarName<"<symbol>">;




More information about the llvm-commits mailing list