@@ -7,18 +7,18 @@ SPDX-License-Identifier: MIT
77============================= end_copyright_notice ===========================*/
88
99#include " igc/Options/Options.h"
10+
1011#include < llvm/Option/Option.h>
11- #include < llvmWrapper/Option/OptTable.h>
1212
1313using namespace IGC ::options;
1414using namespace llvm ::opt;
1515using llvm::raw_ostream;
1616
17- #define PREFIX (NAME, VALUE ) static IGCLLVM::OptPrefixUnionTy API_##NAME = VALUE;
17+ #define PREFIX (NAME, VALUE ) static const char * const API_##NAME[] = VALUE;
1818#include " igc/Options/ApiOptions.inc"
1919#undef PREFIX
2020
21- #define PREFIX (NAME, VALUE ) static IGCLLVM::OptPrefixUnionTy INTERNAL_##NAME = VALUE;
21+ #define PREFIX (NAME, VALUE ) static const char * const INTERNAL_##NAME[] = VALUE;
2222#include " igc/Options/InternalOptions.inc"
2323#undef PREFIX
2424
@@ -52,9 +52,9 @@ static const OptTable::Info InternalInfoTable[] = {
5252};
5353
5454namespace {
55- class IGCApiOptTable : public IGCLLVM ::GenericOptTable {
55+ class IGCApiOptTable : public OptTable {
5656public:
57- IGCApiOptTable () : IGCLLVM::GenericOptTable (ApiInfoTable) {
57+ IGCApiOptTable () : OptTable (ApiInfoTable) {
5858 OptTable &Opt = *this ;
5959 (void )Opt;
6060#define OPTTABLE_ARG_INIT
@@ -63,9 +63,9 @@ class IGCApiOptTable : public IGCLLVM::GenericOptTable {
6363 }
6464};
6565
66- class IGCInternalOptTable : public IGCLLVM ::GenericOptTable {
66+ class IGCInternalOptTable : public OptTable {
6767public:
68- IGCInternalOptTable () : IGCLLVM::GenericOptTable (InternalInfoTable) {
68+ IGCInternalOptTable () : OptTable (InternalInfoTable) {
6969 OptTable &Opt = *this ;
7070 (void )Opt;
7171#define OPTTABLE_ARG_INIT
0 commit comments