summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2015-10-28 14:50:58 +0000
committerSimon Atanasyan <simon@atanasyan.com>2015-10-28 14:50:58 +0000
commit069b2dd66c42af8e12e698b0f53c2a657a60f948 (patch)
treee29d5a7a735355aaf4a125f3e407c40000dab372
parent7967614b2b89578c634135c3ea9992851d8b6603 (diff)
downloadbcm5719-llvm-069b2dd66c42af8e12e698b0f53c2a657a60f948.tar.gz
bcm5719-llvm-069b2dd66c42af8e12e698b0f53c2a657a60f948.zip
[Driver] Ignore -G option in both new and old ELF linker
This is optimization option that make sense for MIPS targets. We can safely ignore it now. llvm-svn: 251519
-rw-r--r--lld/ELF/Options.td1
-rw-r--r--lld/lib/Driver/GnuLdOptions.td3
2 files changed, 4 insertions, 0 deletions
diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td
index 4cac5b65fee..655c932241b 100644
--- a/lld/ELF/Options.td
+++ b/lld/ELF/Options.td
@@ -144,3 +144,4 @@ def start_group_paren: Flag<["-"], "(">;
def version_script : Separate<["--"], "version-script">;
def warn_common : Flag<["--"], "warn-common">;
def warn_shared_textrel : Flag<["--"], "warn-shared-textrel">;
+def G : Separate<["-"], "G">;
diff --git a/lld/lib/Driver/GnuLdOptions.td b/lld/lib/Driver/GnuLdOptions.td
index 02a4d1ad9a3..7d850d4d002 100644
--- a/lld/lib/Driver/GnuLdOptions.td
+++ b/lld/lib/Driver/GnuLdOptions.td
@@ -367,6 +367,9 @@ def Qy : Flag<["-"], "Qy">,
def qmagic : Flag<["-"], "qmagic">,
HelpText<"Ignored for Linux Compatibility">,
Group<grp_ignored>;
+def G : Separate<["-"], "G">,
+ HelpText<"Ignored for MIPS GNU Linker Compatibility">,
+ Group<grp_ignored>;
//===----------------------------------------------------------------------===//
/// Help
OpenPOWER on IntegriCloud