diff options
Diffstat (limited to 'include/llvm/Option/OptTable.h')
-rw-r--r-- | include/llvm/Option/OptTable.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/llvm/Option/OptTable.h b/include/llvm/Option/OptTable.h index 96f51cf3317d..390e52774fea 100644 --- a/include/llvm/Option/OptTable.h +++ b/include/llvm/Option/OptTable.h @@ -50,8 +50,7 @@ public: private: /// \brief The static option information table. - const Info *OptionInfos; - unsigned NumOptionInfos; + ArrayRef<Info> OptionInfos; bool IgnoreCase; unsigned TheInputOptionID; @@ -74,14 +73,13 @@ private: } protected: - OptTable(const Info *OptionInfos, unsigned NumOptionInfos, - bool IgnoreCase = false); + OptTable(ArrayRef<Info> OptionInfos, bool IgnoreCase = false); public: ~OptTable(); /// \brief Return the total number of option classes. - unsigned getNumOptions() const { return NumOptionInfos; } + unsigned getNumOptions() const { return OptionInfos.size(); } /// \brief Get the given Opt's Option instance, lazily creating it /// if necessary. |