[PATCH] D43526: Inline printHelp.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 13:31:15 PST 2018
ruiu created this revision.
ruiu added a reviewer: sbc100.
Herald added a subscriber: aheejin.
Inline printHelp.
https://reviews.llvm.org/D43526
Files:
lld/wasm/Driver.cpp
Index: lld/wasm/Driver.cpp
===================================================================
--- lld/wasm/Driver.cpp
+++ lld/wasm/Driver.cpp
@@ -132,10 +132,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());
@@ -226,7 +222,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.135133.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180220/72c4b625/attachment.bin>
More information about the llvm-commits
mailing list