[lld] r325953 - Inline printHelp.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 23 12:24:40 PST 2018
Author: ruiu
Date: Fri Feb 23 12:24:40 2018
New Revision: 325953
URL: http://llvm.org/viewvc/llvm-project?rev=325953&view=rev
Log:
Inline printHelp.
Differential Revision: https://reviews.llvm.org/D43526
Modified:
lld/trunk/wasm/Driver.cpp
Modified: lld/trunk/wasm/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Driver.cpp?rev=325953&r1=325952&r2=325953&view=diff
==============================================================================
--- lld/trunk/wasm/Driver.cpp (original)
+++ lld/trunk/wasm/Driver.cpp Fri Feb 23 12:24:40 2018
@@ -135,10 +135,6 @@ static Optional<std::string> findFile(St
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 @@ void LinkerDriver::link(ArrayRef<const c
// Handle --help
if (Args.hasArg(OPT_help)) {
- printHelp(ArgsArr[0]);
+ Parser.PrintHelp(outs(), ArgsArr[0], "LLVM Linker", false);
return;
}
More information about the llvm-commits
mailing list