[lld] r268117 - [ELF] Ignore -d option (and aliases).

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 29 14:44:02 PDT 2016


Author: davide
Date: Fri Apr 29 16:44:02 2016
New Revision: 268117

URL: http://llvm.org/viewvc/llvm-project?rev=268117&view=rev
Log:
[ELF] Ignore -d option (and aliases).

The linker already allocates common symbols by default.
Discussed with Rafael.

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=268117&r1=268116&r2=268117&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Fri Apr 29 16:44:02 2016
@@ -230,6 +230,7 @@ def plugin_opt : Separate<["--", "-"], "
 def plugin_opt_eq : Joined<["--", "-"], "plugin-opt=">;
 
 // Options listed below are silently ignored for now for compatibility.
+def define_common : Flag<["-", "--"], "define-common">;
 def detect_odr_violations : Flag<["--"], "detect-odr-violations">;
 def fatal_warnings : Flag<["--"], "fatal-warnings">;
 def no_add_needed : Flag<["--"], "no-add-needed">;
@@ -246,6 +247,9 @@ def warn_shared_textrel : Flag<["--"], "
 def G : Separate<["-"], "G">;
 
 // Aliases for ignored options
+def alias_define_common_d : Flag<["-"], "d">, Alias<define_common>;
+def alias_define_common_dc : Flag<["-"], "dc">, Alias<define_common>;
+def alias_define_common_dp : Flag<["-"], "dp">, Alias<define_common>;
 def alias_version_script_version_script : Joined<["--"], "version-script=">, Alias<version_script>;
 
 // LTO-related options.




More information about the llvm-commits mailing list