[lld] r277531 - [ELF] Ignore -g option for compatibility.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 15:14:01 PDT 2016


Author: davide
Date: Tue Aug  2 17:14:00 2016
New Revision: 277531

URL: http://llvm.org/viewvc/llvm-project?rev=277531&view=rev
Log:
[ELF] Ignore -g option for compatibility.

Also ld.bfd and ld.gold ignore this options. I hit this one in
the wild, and just ignoring it's trivial, so, let's do it.

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=277531&r1=277530&r2=277531&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Tue Aug  2 17:14:00 2016
@@ -247,6 +247,7 @@ def allow_shlib_undefined: F<"allow-shli
 def define_common: F<"define-common">;
 def demangle: F<"demangle">;
 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">,




More information about the llvm-commits mailing list