Skip to content

Commit 05e9f89

Browse files
authored
Update OptTable due to llvm commit fdbd17d1fb0d5 (#582)
SUBCOMMANDIDS_OFFSET is newly introduced in llvm/llvm-project@fdbd17d1fb0d5
1 parent c2830d3 commit 05e9f89

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ enum COMPILE_OPT_ID {
3535
#define PREFIX(NAME, VALUE)
3636
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, \
3737
VISIBILITY, PARAM, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, \
38-
VALUES) \
38+
VALUES, SUBCOMMANDIDS_OFFSET) \
3939
OPT_COMPILE_##ID,
4040
#include "opencl_clang_options.inc"
4141
OPT_COMPILE_LAST_OPTION

options_compile.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static constexpr OptTable::Info ClangOptionsInfoTable[] = {
3939
#define PREFIX(NAME, VALUE)
4040
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, \
4141
VISIBILITY, PARAM, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, \
42-
VALUES) \
42+
VALUES, SUBCOMMANDIDS_OFFSET) \
4343
{PREFIX, \
4444
NAME, \
4545
HELPTEXT, \
@@ -53,7 +53,8 @@ static constexpr OptTable::Info ClangOptionsInfoTable[] = {
5353
OPT_COMPILE_##GROUP, \
5454
OPT_COMPILE_##ALIAS, \
5555
ALIASARGS, \
56-
VALUES},
56+
VALUES, \
57+
SUBCOMMANDIDS_OFFSET},
5758
#include "opencl_clang_options.inc"
5859
};
5960

0 commit comments

Comments
 (0)