[lld] d07ff99 - [ELF] Enforce double-dash form --error-limit

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 27 12:49:40 PST 2022


Author: Fangrui Song
Date: 2022-02-27T20:49:36Z
New Revision: d07ff99591707ae04e78781ba863b83e0daea874

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

LOG: [ELF] Enforce double-dash form --error-limit

It's ld.lld specific and by convention we enforce the double-dash form to avoid
collision with the short option -e (--entry).

Added: 
    

Modified: 
    lld/ELF/Options.td

Removed: 
    


################################################################################
diff  --git a/lld/ELF/Options.td b/lld/ELF/Options.td
index 40b064c4c5f5..e50fa2b23571 100644
--- a/lld/ELF/Options.td
+++ b/lld/ELF/Options.td
@@ -176,7 +176,7 @@ defm entry: Eq<"entry", "Name of entry point symbol">,
   MetaVarName<"<entry>">;
 
 defm error_limit:
-  Eq<"error-limit", "Maximum number of errors to emit before stopping (0 = no limit)">;
+  EEq<"error-limit", "Maximum number of errors to emit before stopping (0 = no limit)">;
 
 def error_unresolved_symbols: F<"error-unresolved-symbols">,
   HelpText<"Report unresolved symbols as errors">;


        


More information about the llvm-commits mailing list