diff options
author | Rui Ueyama <ruiu@google.com> | 2013-08-28 20:04:31 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-08-28 20:04:31 +0000 |
commit | 2957273b888dabe8be8e2fa5ac691e39879685c4 (patch) | |
tree | 275ac46fd8d334c7ae15c3391cb95c76e22f3e74 /include/llvm/Option | |
parent | 435798e96a64738b55a01055dde1bc9a88a15191 (diff) | |
download | external_llvm-2957273b888dabe8be8e2fa5ac691e39879685c4.zip external_llvm-2957273b888dabe8be8e2fa5ac691e39879685c4.tar.gz external_llvm-2957273b888dabe8be8e2fa5ac691e39879685c4.tar.bz2 |
Option parsing: support case-insensitive option matching.
Re-submitting r189416 with fix for Windows build on where strcasecmp is not defined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Option')
-rw-r--r-- | include/llvm/Option/OptTable.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Option/OptTable.h b/include/llvm/Option/OptTable.h index a5b59ce..5035940 100644 --- a/include/llvm/Option/OptTable.h +++ b/include/llvm/Option/OptTable.h @@ -51,6 +51,7 @@ private: /// \brief The static option information table. const Info *OptionInfos; unsigned NumOptionInfos; + bool IgnoreCase; unsigned TheInputOptionID; unsigned TheUnknownOptionID; @@ -72,7 +73,8 @@ private: } protected: - OptTable(const Info *_OptionInfos, unsigned _NumOptionInfos); + OptTable(const Info *_OptionInfos, unsigned _NumOptionInfos, + bool _IgnoreCase = false); public: ~OptTable(); |