[Option] Use an ArrayRef to store the Option Infos in OptTable. NFC
[oota-llvm.git] / lib / LibDriver / LibDriver.cpp
index cc5c543888c3039e1db6e195413d0f3626ffd0de..3ae5434607453d2f0c0a23dd301d1150532f4dcf 100644 (file)
@@ -51,7 +51,7 @@ static const llvm::opt::OptTable::Info infoTable[] = {
 
 class LibOptTable : public llvm::opt::OptTable {
 public:
-  LibOptTable() : OptTable(infoTable, llvm::array_lengthof(infoTable), true) {}
+  LibOptTable() : OptTable(infoTable, true) {}
 };
 
 }