Remove redundant local variables.

llvm-svn: 320436
This commit is contained in:
Rui Ueyama 2017-12-11 23:19:11 +00:00
parent fe4d904917
commit 6074e6b094
3 changed files with 4 additions and 7 deletions

View File

@ -773,8 +773,7 @@ std::vector<const char *> ArgParser::tokenize(StringRef S) {
}
void printHelp(const char *Argv0) {
COFFOptTable Table;
Table.PrintHelp(outs(), Argv0, "LLVM Linker", false);
COFFOptTable().PrintHelp(outs(), Argv0, "LLVM Linker", false);
}
} // namespace coff

View File

@ -114,9 +114,8 @@ opt::InputArgList ELFOptTable::parse(ArrayRef<const char *> Argv) {
}
void elf::printHelp(const char *Argv0) {
ELFOptTable Table;
Table.PrintHelp(outs(), Argv0, "lld", false /*ShowHidden*/,
true /*ShowAllAliases*/);
ELFOptTable().PrintHelp(outs(), Argv0, "lld", false /*ShowHidden*/,
true /*ShowAllAliases*/);
outs() << "\n";
// Scripts generated by Libtool versions up to at least 2.4.6 (the most

View File

@ -143,8 +143,7 @@ static void addSyntheticUndefinedFunction(StringRef Name,
}
static void printHelp(const char *Argv0) {
WasmOptTable Table;
Table.PrintHelp(outs(), Argv0, "LLVM Linker", false);
WasmOptTable().PrintHelp(outs(), Argv0, "LLVM Linker", false);
}
WasmOptTable::WasmOptTable() : OptTable(OptInfo) {}