[lld] r311518 - NFC: LLD fix OptTable Variable Name Style
Martell Malone via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 22 19:33:42 PDT 2017
Author: martell
Date: Tue Aug 22 19:33:42 2017
New Revision: 311518
URL: http://llvm.org/viewvc/llvm-project?rev=311518&view=rev
Log:
NFC: LLD fix OptTable Variable Name Style
Modified:
lld/trunk/COFF/DriverUtils.cpp
lld/trunk/lib/Driver/DarwinLdDriver.cpp
Modified: lld/trunk/COFF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/DriverUtils.cpp?rev=311518&r1=311517&r2=311518&view=diff
==============================================================================
--- lld/trunk/COFF/DriverUtils.cpp (original)
+++ lld/trunk/COFF/DriverUtils.cpp Tue Aug 22 19:33:42 2017
@@ -708,7 +708,7 @@ void runMSVCLinker(std::string Rsp, Arra
#undef PREFIX
// Create table mapping all options defined in Options.td
-static const llvm::opt::OptTable::Info infoTable[] = {
+static const llvm::opt::OptTable::Info InfoTable[] = {
#define OPTION(X1, X2, ID, KIND, GROUP, ALIAS, X7, X8, X9, X10, X11, X12) \
{X1, X2, X10, X11, OPT_##ID, llvm::opt::Option::KIND##Class, \
X9, X8, OPT_##GROUP, OPT_##ALIAS, X7, X12},
@@ -718,7 +718,7 @@ static const llvm::opt::OptTable::Info i
class COFFOptTable : public llvm::opt::OptTable {
public:
- COFFOptTable() : OptTable(infoTable, true) {}
+ COFFOptTable() : OptTable(InfoTable, true) {}
};
// Parses a given list of options.
Modified: lld/trunk/lib/Driver/DarwinLdDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/DarwinLdDriver.cpp?rev=311518&r1=311517&r2=311518&view=diff
==============================================================================
--- lld/trunk/lib/Driver/DarwinLdDriver.cpp (original)
+++ lld/trunk/lib/Driver/DarwinLdDriver.cpp Tue Aug 22 19:33:42 2017
@@ -74,7 +74,7 @@ enum {
#undef PREFIX
// Create table mapping all options defined in DarwinLdOptions.td
-static const llvm::opt::OptTable::Info infoTable[] = {
+static const llvm::opt::OptTable::Info InfoTable[] = {
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \
HELPTEXT, METAVAR, VALUES) \
{PREFIX, NAME, HELPTEXT, \
@@ -88,7 +88,7 @@ static const llvm::opt::OptTable::Info i
// Create OptTable class for parsing actual command line arguments
class DarwinLdOptTable : public llvm::opt::OptTable {
public:
- DarwinLdOptTable() : OptTable(infoTable) {}
+ DarwinLdOptTable() : OptTable(InfoTable) {}
};
static std::vector<std::unique_ptr<File>>
More information about the llvm-commits
mailing list