Skip to content

Commit 1487be5

Browse files
committed
Revert "add 'Visibility' field to Option (#474)"
This reverts commit 45180f6.
1 parent 0e36c8a commit 1487be5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

options.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ Copyright (c) Intel Corporation (2009-2017).
3333
enum COMPILE_OPT_ID {
3434
OPT_COMPILE_INVALID = 0, // This is not an option ID.
3535
#define PREFIX(NAME, VALUE)
36-
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, \
37-
VISIBILITY, PARAM, HELPTEXT, METAVAR, VALUES) \
36+
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \
37+
HELPTEXT, METAVAR, VALUES) \
3838
OPT_COMPILE_##ID,
3939
#include "opencl_clang_options.inc"
4040
OPT_COMPILE_LAST_OPTION

options_compile.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ 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, PARAM, \
39+
HELPTEXT, METAVAR, VALUES)
4040
#include "opencl_clang_options.inc"
4141
#undef OPTION
4242
#undef PREFIX
@@ -47,12 +47,12 @@ extern llvm::ManagedStatic<llvm::sys::SmartMutex<true>> compileMutex;
4747

4848
static constexpr OptTable::Info ClangOptionsInfoTable[] = {
4949
#define PREFIX(NAME, VALUE)
50-
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, VISIBILITY, \
51-
PARAM, HELPTEXT, METAVAR, VALUES) \
50+
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \
51+
HELPTEXT, METAVAR, VALUES) \
5252
{ \
5353
PREFIX, NAME, HELPTEXT, METAVAR, OPT_COMPILE_##ID, \
54-
llvm::opt::Option::KIND##Class, VISIBILITY, PARAM, FLAGS, \
55-
OPT_COMPILE_##GROUP, OPT_COMPILE_##ALIAS, ALIASARGS, VALUES \
54+
llvm::opt::Option::KIND##Class, PARAM, FLAGS, OPT_COMPILE_##GROUP, \
55+
OPT_COMPILE_##ALIAS, ALIASARGS, VALUES \
5656
} \
5757
,
5858
#include "opencl_clang_options.inc"

0 commit comments

Comments
 (0)