diff options
| author | Rui Ueyama <ruiu@google.com> | 2013-08-27 23:47:01 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2013-08-27 23:47:01 +0000 |
| commit | 7159bd9dcbca57580abe04289fa61a6ae0af0a6d (patch) | |
| tree | f57ceb8f63a4ec7887927889f1ecb22314642f95 /llvm/include | |
| parent | dba67a226f3a65f6046d7bf77729452a179dc1a5 (diff) | |
| download | bcm5719-llvm-7159bd9dcbca57580abe04289fa61a6ae0af0a6d.tar.gz bcm5719-llvm-7159bd9dcbca57580abe04289fa61a6ae0af0a6d.zip | |
Option parsing: support case-insensitive option matching.
Link.exe's command line options are case-insensitive. This patch
adds a new attribute to OptTable to let the option parser to compare
options, ignoring case.
Command lines are generally case-insensitive on Windows. CL.exe is an
exception. So this new attribute should be useful for other commands
running on Windows.
Differential Revision: http://llvm-reviews.chandlerc.com/D1485
llvm-svn: 189416
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(); |

