[lld] 51ee08c - [ELF] Enforce double-dash form for --ignore-{data,function}-pointer-equality --reproduce --thread

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 10 01:17:12 PST 2021


Author: Fangrui Song
Date: 2021-11-10T01:17:08-08:00
New Revision: 51ee08c2175d677ec6dbd9622c1798b0d7bda06c

URL: https://github.com/llvm/llvm-project/commit/51ee08c2175d677ec6dbd9622c1798b0d7bda06c
DIFF: https://github.com/llvm/llvm-project/commit/51ee08c2175d677ec6dbd9622c1798b0d7bda06c.diff

LOG: [ELF] Enforce double-dash form for --ignore-{data,function}-pointer-equality --reproduce --thread

They are LLD-specific options. We have enforced double-dash forms for
other options (reduce collision with short options) but missed them.

Added: 
    

Modified: 
    lld/ELF/Options.td

Removed: 
    


################################################################################
diff  --git a/lld/ELF/Options.td b/lld/ELF/Options.td
index d0a6ee26f81c..626b00c6c4e4 100644
--- a/lld/ELF/Options.td
+++ b/lld/ELF/Options.td
@@ -250,10 +250,10 @@ def icf_safe: F<"icf=safe">, HelpText<"Enable safe 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">,
+def ignore_function_address_equality: FF<"ignore-function-address-equality">,
   HelpText<"lld can break the address equality of functions">;
 
-def ignore_data_address_equality: F<"ignore-data-address-equality">,
+def ignore_data_address_equality: FF<"ignore-data-address-equality">,
   HelpText<"lld can break the address equality of data">;
 
 defm image_base: EEq<"image-base", "Set the base address">;
@@ -353,7 +353,7 @@ def print_map: F<"print-map">,
   HelpText<"Print a link map to the standard output">;
 
 defm reproduce:
-  Eq<"reproduce",
+  EEq<"reproduce",
      "Write tar file containing inputs and command to reproduce link">;
 
 defm rosegment: BB<"rosegment",
@@ -404,7 +404,7 @@ defm target2:
   MetaVarName<"<type>">;
 
 defm threads
-    : Eq<"threads",
+    : EEq<"threads",
          "Number of threads. '1' disables multi-threading. By default all "
          "available hardware threads are used">;
 
@@ -501,7 +501,7 @@ defm wrap : Eq<"wrap", "Redirect symbol references to __wrap_symbol and "
 def z: JoinedOrSeparate<["-"], "z">, MetaVarName<"<option>">,
   HelpText<"Linker option extensions">;
 
-def visual_studio_diagnostics_format : F<"vs-diagnostics">,
+def visual_studio_diagnostics_format : FF<"vs-diagnostics">,
 HelpText<"Format diagnostics for Visual Studio compatibility">;
 
 // Aliases


        


More information about the llvm-commits mailing list