Skip to content

Commit 5884917

Browse files
authored
Update Options macro due to 7e958f64e (#508)
Fix build failure after merging 7e958f64e .
1 parent ad248f4 commit 5884917

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

options.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ enum COMPILE_OPT_ID {
3434
OPT_COMPILE_INVALID = 0, // This is not an option ID.
3535
#define PREFIX(NAME, VALUE)
3636
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, \
37-
VISIBILITY, PARAM, HELPTEXT, METAVAR, VALUES) \
37+
VISIBILITY, PARAM, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, \
38+
VALUES) \
3839
OPT_COMPILE_##ID,
3940
#include "opencl_clang_options.inc"
4041
OPT_COMPILE_LAST_OPTION

options_compile.cpp

+20-10
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ Copyright (c) Intel Corporation (2009-2017).
3535
static constexpr llvm::StringLiteral NAME##_init[] = VALUE; \
3636
static constexpr llvm::ArrayRef<llvm::StringLiteral> NAME( \
3737
NAME##_init, std::size(NAME##_init) - 1);
38-
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, VISIBILITY, \
39-
PARAM, HELPTEXT, METAVAR, VALUES)
38+
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, \
39+
VISIBILITY, PARAM, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, \
40+
VALUES)
4041
#include "opencl_clang_options.inc"
4142
#undef OPTION
4243
#undef PREFIX
@@ -47,14 +48,23 @@ extern llvm::ManagedStatic<llvm::sys::SmartMutex<true>> compileMutex;
4748

4849
static constexpr OptTable::Info ClangOptionsInfoTable[] = {
4950
#define PREFIX(NAME, VALUE)
50-
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, VISIBILITY, \
51-
PARAM, HELPTEXT, METAVAR, VALUES) \
52-
{ \
53-
PREFIX, NAME, HELPTEXT, METAVAR, OPT_COMPILE_##ID, \
54-
llvm::opt::Option::KIND##Class, PARAM, FLAGS, VISIBILITY, \
55-
OPT_COMPILE_##GROUP, OPT_COMPILE_##ALIAS, ALIASARGS, VALUES \
56-
} \
57-
,
51+
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, \
52+
VISIBILITY, PARAM, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, \
53+
VALUES) \
54+
{PREFIX, \
55+
NAME, \
56+
HELPTEXT, \
57+
HELPTEXTSFORVARIANTS, \
58+
METAVAR, \
59+
OPT_COMPILE_##ID, \
60+
llvm::opt::Option::KIND##Class, \
61+
PARAM, \
62+
FLAGS, \
63+
VISIBILITY, \
64+
OPT_COMPILE_##GROUP, \
65+
OPT_COMPILE_##ALIAS, \
66+
ALIASARGS, \
67+
VALUES},
5868
#include "opencl_clang_options.inc"
5969
};
6070

0 commit comments

Comments
 (0)