diff options
author | Shankar Easwaran <shankarke@gmail.com> | 2014-10-21 04:02:32 +0000 |
---|---|---|
committer | Shankar Easwaran <shankarke@gmail.com> | 2014-10-21 04:02:32 +0000 |
commit | 1b44519a6c276935023b7b49c49c677c7f98968e (patch) | |
tree | 9e542a85e9ee73f186d07059c94175f23f62863e | |
parent | 03b340a3a5608eecf447bdbcb0a3b64714e4efd7 (diff) | |
download | bcm5719-llvm-1b44519a6c276935023b7b49c49c677c7f98968e.tar.gz bcm5719-llvm-1b44519a6c276935023b7b49c49c677c7f98968e.zip |
[Gnu] Move certain options to a different group.
The -mllvm option is not specific to LTO.
llvm-svn: 220263
-rw-r--r-- | lld/lib/Driver/GnuLdOptions.td | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lld/lib/Driver/GnuLdOptions.td b/lld/lib/Driver/GnuLdOptions.td index 0abb7e5652b..c060fe77677 100644 --- a/lld/lib/Driver/GnuLdOptions.td +++ b/lld/lib/Driver/GnuLdOptions.td @@ -26,6 +26,17 @@ multiclass dashEq<string opt1, string opt2, string help> { } //===----------------------------------------------------------------------===// +/// LLVM and Target options +//===----------------------------------------------------------------------===// +def grp_llvmtarget : OptionGroup<"opts">, + HelpText<"LLVM and Target Options">; +def mllvm : Separate<["-"], "mllvm">, + HelpText<"Options to pass to LLVM">, Group<grp_llvmtarget>; +def target : Separate<["-"], "target">, MetaVarName<"<triple>">, + HelpText<"Target triple to link for">, + Group<grp_llvmtarget>; + +//===----------------------------------------------------------------------===// /// Output Kinds //===----------------------------------------------------------------------===// def grp_kind : OptionGroup<"outs">, @@ -48,9 +59,6 @@ def Bshareable : Flag<["-"], "Bshareable">, Alias<shared>; //===----------------------------------------------------------------------===// def grp_general : OptionGroup<"opts">, HelpText<"GENERAL OPTIONS">; -def target : Separate<["-"], "target">, MetaVarName<"<triple>">, - HelpText<"Target triple to link for">, - Group<grp_general>; def output : Separate<["-"], "o">, MetaVarName<"<path>">, HelpText<"Path to file to write output">, Group<grp_general>; @@ -231,8 +239,6 @@ def no_demangle : Flag<["--"], "no-demangle">, //===----------------------------------------------------------------------===// def grp_opts : OptionGroup<"opts">, HelpText<"OPTIMIZATIONS">; -def mllvm : Separate<["-"], "mllvm">, - HelpText<"Options to pass to LLVM during LTO">, Group<grp_opts>; def hash_style : Joined <["--"], "hash-style=">, HelpText<"Set the type of linker's hash table(s)">, Group<grp_opts>; |