Skip to content

Commit

Permalink
Revert "add 'Visibility' field to Option (#474)"
Browse files Browse the repository at this point in the history
This reverts commit 45180f6.
  • Loading branch information
wenju-he committed Aug 29, 2023
1 parent 0e36c8a commit 1487be5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions options.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Copyright (c) Intel Corporation (2009-2017).
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) \
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \
HELPTEXT, METAVAR, VALUES) \
OPT_COMPILE_##ID,
#include "opencl_clang_options.inc"
OPT_COMPILE_LAST_OPTION
Expand Down
12 changes: 6 additions & 6 deletions options_compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Copyright (c) Intel Corporation (2009-2017).
static constexpr llvm::StringLiteral NAME##_init[] = VALUE; \
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)
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \
HELPTEXT, METAVAR, VALUES)
#include "opencl_clang_options.inc"
#undef OPTION
#undef PREFIX
Expand All @@ -47,12 +47,12 @@ 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) \
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \
HELPTEXT, METAVAR, VALUES) \
{ \
PREFIX, NAME, HELPTEXT, METAVAR, OPT_COMPILE_##ID, \
llvm::opt::Option::KIND##Class, VISIBILITY, PARAM, FLAGS, \
OPT_COMPILE_##GROUP, OPT_COMPILE_##ALIAS, ALIASARGS, VALUES \
llvm::opt::Option::KIND##Class, PARAM, FLAGS, OPT_COMPILE_##GROUP, \
OPT_COMPILE_##ALIAS, ALIASARGS, VALUES \
} \
,
#include "opencl_clang_options.inc"
Expand Down

0 comments on commit 1487be5

Please sign in to comment.