From 8ea2390c35ba9ac23574e4a481c8a3cd49421a49 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 21 Oct 2015 16:30:42 +0000 Subject: [Option] Use an ArrayRef to store the Option Infos in OptTable. NFC llvm-svn: 250901 --- llvm/lib/LibDriver/LibDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/LibDriver/LibDriver.cpp') diff --git a/llvm/lib/LibDriver/LibDriver.cpp b/llvm/lib/LibDriver/LibDriver.cpp index cc5c543..3ae54346 100644 --- a/llvm/lib/LibDriver/LibDriver.cpp +++ b/llvm/lib/LibDriver/LibDriver.cpp @@ -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) {} }; } -- cgit v1.1