[lld] r220263 - [Gnu] Move certain options to a different group.
Shankar Easwaran
shankarke at gmail.com
Mon Oct 20 21:02:33 PDT 2014
Author: shankare
Date: Mon Oct 20 23:02:32 2014
New Revision: 220263
URL: http://llvm.org/viewvc/llvm-project?rev=220263&view=rev
Log:
[Gnu] Move certain options to a different group.
The -mllvm option is not specific to LTO.
Modified:
lld/trunk/lib/Driver/GnuLdOptions.td
Modified: lld/trunk/lib/Driver/GnuLdOptions.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/GnuLdOptions.td?rev=220263&r1=220262&r2=220263&view=diff
==============================================================================
--- lld/trunk/lib/Driver/GnuLdOptions.td (original)
+++ lld/trunk/lib/Driver/GnuLdOptions.td Mon Oct 20 23:02:32 2014
@@ -26,6 +26,17 @@ multiclass dashEq<string opt1, string op
}
//===----------------------------------------------------------------------===//
+/// 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
//===----------------------------------------------------------------------===//
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-deman
//===----------------------------------------------------------------------===//
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>;
More information about the llvm-commits
mailing list