Skip to content

Commit

Permalink
Update Options macro due to 7e958f64e
Browse files Browse the repository at this point in the history
  • Loading branch information
jsji committed Apr 7, 2024
1 parent ad248f4 commit 94090ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion options.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ enum COMPILE_OPT_ID {
OPT_COMPILE_INVALID = 0, // This is not an option ID.
#define PREFIX(NAME, VALUE)
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, \
VISIBILITY, PARAM, HELPTEXT, METAVAR, VALUES) \
VISIBILITY, PARAM, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, VALUES) \
OPT_COMPILE_##ID,
#include "opencl_clang_options.inc"
OPT_COMPILE_LAST_OPTION
Expand Down
6 changes: 3 additions & 3 deletions options_compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Copyright (c) Intel Corporation (2009-2017).
static constexpr llvm::ArrayRef<llvm::StringLiteral> NAME( \
NAME##_init, std::size(NAME##_init) - 1);
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, VISIBILITY, \
PARAM, HELPTEXT, METAVAR, VALUES)
PARAM, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, VALUES)
#include "opencl_clang_options.inc"
#undef OPTION
#undef PREFIX
Expand All @@ -48,9 +48,9 @@ extern llvm::ManagedStatic<llvm::sys::SmartMutex<true>> compileMutex;
static constexpr OptTable::Info ClangOptionsInfoTable[] = {
#define PREFIX(NAME, VALUE)
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, VISIBILITY, \
PARAM, HELPTEXT, METAVAR, VALUES) \
PARAM, HELPTEXT, HELPTEXTSFORVARIANTS,METAVAR, VALUES) \
{ \
PREFIX, NAME, HELPTEXT, METAVAR, OPT_COMPILE_##ID, \
PREFIX, NAME, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, OPT_COMPILE_##ID, \
llvm::opt::Option::KIND##Class, PARAM, FLAGS, VISIBILITY, \
OPT_COMPILE_##GROUP, OPT_COMPILE_##ALIAS, ALIASARGS, VALUES \
} \
Expand Down

0 comments on commit 94090ac

Please sign in to comment.