aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Option
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-08-28 20:04:31 +0000
committerRui Ueyama <ruiu@google.com>2013-08-28 20:04:31 +0000
commit2957273b888dabe8be8e2fa5ac691e39879685c4 (patch)
tree275ac46fd8d334c7ae15c3391cb95c76e22f3e74 /include/llvm/Option
parent435798e96a64738b55a01055dde1bc9a88a15191 (diff)
downloadexternal_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.h4
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();