[lld] r320436 - Remove redundant local variables.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 11 15:19:11 PST 2017
Author: ruiu
Date: Mon Dec 11 15:19:11 2017
New Revision: 320436
URL: http://llvm.org/viewvc/llvm-project?rev=320436&view=rev
Log:
Remove redundant local variables.
Modified:
lld/trunk/COFF/DriverUtils.cpp
lld/trunk/ELF/DriverUtils.cpp
lld/trunk/wasm/Driver.cpp
Modified: lld/trunk/COFF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/DriverUtils.cpp?rev=320436&r1=320435&r2=320436&view=diff
==============================================================================
--- lld/trunk/COFF/DriverUtils.cpp (original)
+++ lld/trunk/COFF/DriverUtils.cpp Mon Dec 11 15:19:11 2017
@@ -773,8 +773,7 @@ std::vector<const char *> ArgParser::tok
}
void printHelp(const char *Argv0) {
- COFFOptTable Table;
- Table.PrintHelp(outs(), Argv0, "LLVM Linker", false);
+ COFFOptTable().PrintHelp(outs(), Argv0, "LLVM Linker", false);
}
} // namespace coff
Modified: lld/trunk/ELF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DriverUtils.cpp?rev=320436&r1=320435&r2=320436&view=diff
==============================================================================
--- lld/trunk/ELF/DriverUtils.cpp (original)
+++ lld/trunk/ELF/DriverUtils.cpp Mon Dec 11 15:19:11 2017
@@ -114,9 +114,8 @@ opt::InputArgList ELFOptTable::parse(Arr
}
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
Modified: lld/trunk/wasm/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Driver.cpp?rev=320436&r1=320435&r2=320436&view=diff
==============================================================================
--- lld/trunk/wasm/Driver.cpp (original)
+++ lld/trunk/wasm/Driver.cpp Mon Dec 11 15:19:11 2017
@@ -143,8 +143,7 @@ static void addSyntheticUndefinedFunctio
}
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) {}
More information about the llvm-commits
mailing list