[PATCH] D43526: Inline printHelp.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 23 12:26:50 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL325953: Inline printHelp. (authored by ruiu, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D43526?vs=135133&id=135680#toc
Repository:
rL LLVM
https://reviews.llvm.org/D43526
Files:
lld/trunk/wasm/Driver.cpp
Index: lld/trunk/wasm/Driver.cpp
===================================================================
--- lld/trunk/wasm/Driver.cpp
+++ lld/trunk/wasm/Driver.cpp
@@ -135,10 +135,6 @@
return None;
}
-static void printHelp(const char *Argv0) {
- WasmOptTable().PrintHelp(outs(), Argv0, "LLVM Linker", false);
-}
-
opt::InputArgList WasmOptTable::parse(ArrayRef<const char *> Argv) {
SmallVector<const char *, 256> Vec(Argv.data(), Argv.data() + Argv.size());
@@ -229,7 +225,7 @@
// Handle --help
if (Args.hasArg(OPT_help)) {
- printHelp(ArgsArr[0]);
+ Parser.PrintHelp(outs(), ArgsArr[0], "LLVM Linker", false);
return;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43526.135680.patch
Type: text/x-patch
Size: 656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180223/66fc7e38/attachment.bin>
More information about the llvm-commits
mailing list