Skip to content

Commit

Permalink
Inline printHelp.
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D43526

llvm-svn: 325953
  • Loading branch information
rui314 committed Feb 23, 2018
1 parent eecdaaa commit 97f66af
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lld/wasm/Driver.cpp
Expand Up @@ -135,10 +135,6 @@ static Optional<std::string> findFile(StringRef Path1, const Twine &Path2) {
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());

Expand Down Expand Up @@ -229,7 +225,7 @@ void LinkerDriver::link(ArrayRef<const char *> ArgsArr) {

// Handle --help
if (Args.hasArg(OPT_help)) {
printHelp(ArgsArr[0]);
Parser.PrintHelp(outs(), ArgsArr[0], "LLVM Linker", false);
return;
}

Expand Down

0 comments on commit 97f66af

Please sign in to comment.