[PATCH] D35477: [ELF] - Print options aliases in --help
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 26 02:21:55 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL309089: [ELF] - Print options aliases in --help (authored by grimar).
Changed prior to commit:
https://reviews.llvm.org/D35477?vs=108099&id=108234#toc
Repository:
rL LLVM
https://reviews.llvm.org/D35477
Files:
lld/trunk/ELF/DriverUtils.cpp
lld/trunk/test/ELF/help.s
Index: lld/trunk/ELF/DriverUtils.cpp
===================================================================
--- lld/trunk/ELF/DriverUtils.cpp
+++ lld/trunk/ELF/DriverUtils.cpp
@@ -116,7 +116,8 @@
void elf::printHelp(const char *Argv0) {
ELFOptTable Table;
- Table.PrintHelp(outs(), Argv0, "lld", false);
+ Table.PrintHelp(outs(), Argv0, "lld", false /*ShowHidden*/,
+ true /*ShowAllAliases*/);
outs() << "\n";
// Scripts generated by Libtool versions up to at least 2.4.6 (the most
Index: lld/trunk/test/ELF/help.s
===================================================================
--- lld/trunk/test/ELF/help.s
+++ lld/trunk/test/ELF/help.s
@@ -0,0 +1,5 @@
+# RUN: ld.lld --help 2>&1 | FileCheck %s
+# CHECK: OPTIONS:
+# CHECK: --output=<value> Path to file to write output
+# CHECK: --output <value> Path to file to write output
+# CHECK: -o <path> Path to file to write output
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35477.108234.patch
Type: text/x-patch
Size: 943 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170726/c5d28a68/attachment-0001.bin>
More information about the llvm-commits
mailing list