Simplify ignored options.
authorRui Ueyama <ruiu@google.com>
Tue, 25 Jul 2017 23:32:05 +0000 (23:32 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 25 Jul 2017 23:32:05 +0000 (23:32 +0000)
Since the flag is ignored anyway, it doesn't matter whether
it is an alias or not.

llvm-svn: 309055

lld/ELF/Options.td

index 9a26165..31fdfa2 100644 (file)
@@ -381,13 +381,12 @@ def plugin_opt_eq: J<"plugin-opt=">;
 
 // Options listed below are silently ignored for now for compatibility.
 def allow_shlib_undefined: F<"allow-shlib-undefined">;
-def cref: Flag<["--"], "cref">;
+def cref: F<"cref">;
 def detect_odr_violations: F<"detect-odr-violations">;
 def g: Flag<["-"], "g">;
 def no_add_needed: F<"no-add-needed">;
 def no_allow_shlib_undefined: F<"no-allow-shlib-undefined">;
-def no_copy_dt_needed_entries: F<"no-copy-dt-needed-entries">,
-  Alias<no_add_needed>;
+def no_copy_dt_needed_entries: F<"no-copy-dt-needed-entries">;
 def no_keep_memory: F<"no-keep-memory">;
 def no_mmap_output_file: F<"no-mmap-output-file">;
 def no_warn_common: F<"no-warn-common">;
@@ -402,4 +401,3 @@ def EB : F<"EB">;
 def EL : F<"EL">;
 def G: JoinedOrSeparate<["-"], "G">;
 def Qy : F<"Qy">;
-