From 94090ac0338351c343f16e7b8b2811e38f8ddfb4 Mon Sep 17 00:00:00 2001 From: Jinsong Ji Date: Sat, 6 Apr 2024 17:54:38 -0700 Subject: [PATCH] Update Options macro due to 7e958f64e --- options.h | 2 +- options_compile.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/options.h b/options.h index 5be4e1c..6e0b94d 100644 --- a/options.h +++ b/options.h @@ -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 diff --git a/options_compile.cpp b/options_compile.cpp index 6fce9ce..1d0d896 100644 --- a/options_compile.cpp +++ b/options_compile.cpp @@ -36,7 +36,7 @@ Copyright (c) Intel Corporation (2009-2017). static constexpr llvm::ArrayRef 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 @@ -48,9 +48,9 @@ extern llvm::ManagedStatic> 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 \ } \