[lld] r273847 - Define -v and -V as aliases to --version.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 27 00:35:01 PDT 2016
Author: ruiu
Date: Mon Jun 27 02:35:00 2016
New Revision: 273847
URL: http://llvm.org/viewvc/llvm-project?rev=273847&view=rev
Log:
Define -v and -V as aliases to --version.
This is for GNU compatibility.
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=273847&r1=273846&r2=273847&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Mon Jun 27 02:35:00 2016
@@ -198,6 +198,8 @@ def alias_strip_debug_S: F<"S">, Alias<s
def alias_trace: F<"t">, Alias<trace>;
def alias_trace_symbol_y : JS<"y">, Alias<trace_symbol>;
def alias_undefined_u: JoinedOrSeparate<["-"], "u">, Alias<undefined>;
+def alias_version_V: Flag<["-"], "V">, Alias<version>;
+def alias_version_v: Flag<["-"], "v">, Alias<version>;
def alias_wrap_wrap: J<"wrap=">, Alias<wrap>;
// Our symbol resolution algorithm handles symbols in archive files differently
More information about the llvm-commits
mailing list