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 | 8fb5a9113af85e1801420dfb2f3e6fd7545db6f9 (patch) | |
tree | 99b2e8ed50ac9d6f908bb3368c110c783f3fc6ed /llvm/include | |
parent | 4adca6262e56bf626b72d6784f0e48c0e2d1aa46 (diff) | |
download | bcm5719-llvm-8fb5a9113af85e1801420dfb2f3e6fd7545db6f9.tar.gz bcm5719-llvm-8fb5a9113af85e1801420dfb2f3e6fd7545db6f9.zip |
Option parsing: support case-insensitive option matching.
Re-submitting r189416 with fix for Windows build on where strcasecmp is not defined.
llvm-svn: 189501
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/Option/OptTable.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/Option/OptTable.h b/llvm/include/llvm/Option/OptTable.h index a5b59cea3f6..5035940af06 100644 --- a/llvm/include/llvm/Option/OptTable.h +++ b/llvm/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(); |