diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:46:15 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:46:15 +0000 |
| commit | dd58ef019b700900793a1eb48b52123db01b654e (patch) | |
| tree | fcfbb4df56a744f4ddc6122c50521dd3f1c5e196 /include/llvm/Option/OptTable.h | |
| parent | 2fe5752e3a7c345cdb59e869278d36af33c13fa4 (diff) | |
Notes
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. |
