aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-19 18:09:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-19 18:09:06 +0000
commitf010b26b60f3f51b6fa0335218c9a458ec30cff4 (patch)
treea10a12baad9e62fe30139b5c52648aba8cc4e58e
parentcb78d8852a454684c987220132cdb5e54dd00121 (diff)
Driver: Add Sentinel flag to option kinds.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89367 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Driver/OptParser.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/Driver/OptParser.td b/include/clang/Driver/OptParser.td
index 70b59c69c2..3df315a0db 100644
--- a/include/clang/Driver/OptParser.td
+++ b/include/clang/Driver/OptParser.td
@@ -14,10 +14,12 @@
// Define the kinds of options.
-class OptionKind<string name, int predecence = 0> {
+class OptionKind<string name, int predecence = 0, bit sentinel = 0> {
string Name = name;
// The kind precedence, kinds with lower precedence are matched first.
int Precedence = predecence;
+ // Indicate a sentinel option.
+ bit Sentinel = sentinel;
}
// An option group.