[lld] r250904 - Update lld to match llvm r250901. OptTable constructor now takes an ArrayRef. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 21 09:31:57 PDT 2015


Author: ctopper
Date: Wed Oct 21 11:31:56 2015
New Revision: 250904

URL: http://llvm.org/viewvc/llvm-project?rev=250904&view=rev
Log:
Update lld to match llvm r250901. OptTable constructor now takes an ArrayRef. NFC

Modified:
    lld/trunk/COFF/DriverUtils.cpp
    lld/trunk/ELF/DriverUtils.cpp
    lld/trunk/lib/Driver/CoreDriver.cpp
    lld/trunk/lib/Driver/DarwinLdDriver.cpp
    lld/trunk/lib/Driver/GnuLdDriver.cpp
    lld/trunk/lib/Driver/UniversalDriver.cpp

Modified: lld/trunk/COFF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/DriverUtils.cpp?rev=250904&r1=250903&r2=250904&view=diff
==============================================================================
--- lld/trunk/COFF/DriverUtils.cpp (original)
+++ lld/trunk/COFF/DriverUtils.cpp Wed Oct 21 11:31:56 2015
@@ -646,7 +646,7 @@ static const llvm::opt::OptTable::Info i
 
 class COFFOptTable : public llvm::opt::OptTable {
 public:
-  COFFOptTable() : OptTable(infoTable, llvm::array_lengthof(infoTable), true) {}
+  COFFOptTable() : OptTable(infoTable, true) {}
 };
 
 // Parses a given list of options.

Modified: lld/trunk/ELF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DriverUtils.cpp?rev=250904&r1=250903&r2=250904&view=diff
==============================================================================
--- lld/trunk/ELF/DriverUtils.cpp (original)
+++ lld/trunk/ELF/DriverUtils.cpp Wed Oct 21 11:31:56 2015
@@ -47,7 +47,7 @@ static const opt::OptTable::Info infoTab
 
 class ELFOptTable : public opt::OptTable {
 public:
-  ELFOptTable() : OptTable(infoTable, array_lengthof(infoTable)) {}
+  ELFOptTable() : OptTable(infoTable) {}
 };
 
 // Parses a given list of options.

Modified: lld/trunk/lib/Driver/CoreDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/CoreDriver.cpp?rev=250904&r1=250903&r2=250904&view=diff
==============================================================================
--- lld/trunk/lib/Driver/CoreDriver.cpp (original)
+++ lld/trunk/lib/Driver/CoreDriver.cpp Wed Oct 21 11:31:56 2015
@@ -56,7 +56,7 @@ static const llvm::opt::OptTable::Info i
 // Create OptTable class for parsing actual command line arguments
 class CoreOptTable : public llvm::opt::OptTable {
 public:
-  CoreOptTable() : OptTable(infoTable, llvm::array_lengthof(infoTable)){}
+  CoreOptTable() : OptTable(infoTable) {}
 };
 
 } // namespace anonymous

Modified: lld/trunk/lib/Driver/DarwinLdDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/DarwinLdDriver.cpp?rev=250904&r1=250903&r2=250904&view=diff
==============================================================================
--- lld/trunk/lib/Driver/DarwinLdDriver.cpp (original)
+++ lld/trunk/lib/Driver/DarwinLdDriver.cpp Wed Oct 21 11:31:56 2015
@@ -69,7 +69,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, llvm::array_lengthof(infoTable)){}
+  DarwinLdOptTable() : OptTable(infoTable) {}
 };
 
 std::vector<std::unique_ptr<File>>

Modified: lld/trunk/lib/Driver/GnuLdDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/GnuLdDriver.cpp?rev=250904&r1=250903&r2=250904&view=diff
==============================================================================
--- lld/trunk/lib/Driver/GnuLdDriver.cpp (original)
+++ lld/trunk/lib/Driver/GnuLdDriver.cpp Wed Oct 21 11:31:56 2015
@@ -72,7 +72,7 @@ static const llvm::opt::OptTable::Info i
 // Create OptTable class for parsing actual command line arguments
 class GnuLdOptTable : public llvm::opt::OptTable {
 public:
-  GnuLdOptTable() : OptTable(infoTable, llvm::array_lengthof(infoTable)){}
+  GnuLdOptTable() : OptTable(infoTable){}
 };
 
 } // anonymous namespace

Modified: lld/trunk/lib/Driver/UniversalDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/UniversalDriver.cpp?rev=250904&r1=250903&r2=250904&view=diff
==============================================================================
--- lld/trunk/lib/Driver/UniversalDriver.cpp (original)
+++ lld/trunk/lib/Driver/UniversalDriver.cpp Wed Oct 21 11:31:56 2015
@@ -63,7 +63,7 @@ static const llvm::opt::OptTable::Info i
 class UniversalDriverOptTable : public llvm::opt::OptTable {
 public:
   UniversalDriverOptTable()
-      : OptTable(infoTable, llvm::array_lengthof(infoTable)) {}
+      : OptTable(infoTable) {}
 };
 
 enum class Flavor {




More information about the llvm-commits mailing list