From dcb115bc826a5eaa2b7b3c3ce7245f8ee86287e6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 16 Jul 2004 00:01:05 +0000 Subject: [PATCH] Add a new macro to be used for the end of enum lists. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14862 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/Support/CommandLine.h | 1 + include/llvm/Support/CommandLine.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/Support/CommandLine.h b/include/Support/CommandLine.h index b7bd62a3807..7455f623ecd 100644 --- a/include/Support/CommandLine.h +++ b/include/Support/CommandLine.h @@ -292,6 +292,7 @@ LocationClass location(Ty &L) { return LocationClass(L); } // #define clEnumVal(ENUMVAL, DESC) #ENUMVAL, (int)ENUMVAL, DESC #define clEnumValN(ENUMVAL, FLAGNAME, DESC) FLAGNAME, (int)ENUMVAL, DESC +#define clEnumValEnd ((void*)0) // values - For custom data types, allow specifying a group of values together // as the values that go into the mapping that the option handler uses. Note diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index b7bd62a3807..7455f623ecd 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -292,6 +292,7 @@ LocationClass location(Ty &L) { return LocationClass(L); } // #define clEnumVal(ENUMVAL, DESC) #ENUMVAL, (int)ENUMVAL, DESC #define clEnumValN(ENUMVAL, FLAGNAME, DESC) FLAGNAME, (int)ENUMVAL, DESC +#define clEnumValEnd ((void*)0) // values - For custom data types, allow specifying a group of values together // as the values that go into the mapping that the option handler uses. Note