diff options
Diffstat (limited to 'llvm/lib/ExecutionEngine/JITLink/COFFDirectiveParser.cpp')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JITLink/COFFDirectiveParser.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/llvm/lib/ExecutionEngine/JITLink/COFFDirectiveParser.cpp b/llvm/lib/ExecutionEngine/JITLink/COFFDirectiveParser.cpp index 30c1579a1ba0..f23f3ed9406b 100644 --- a/llvm/lib/ExecutionEngine/JITLink/COFFDirectiveParser.cpp +++ b/llvm/lib/ExecutionEngine/JITLink/COFFDirectiveParser.cpp @@ -36,20 +36,10 @@ static constexpr const ArrayRef<StringLiteral> PrefixTable(PrefixTable_init, std::size(PrefixTable_init) - 1); // Create table mapping all options defined in COFFOptions.td +using namespace llvm::opt; static constexpr opt::OptTable::Info infoTable[] = { -#define OPTION(X1, X2, ID, KIND, GROUP, ALIAS, X7, X8, X9, X10, X11, X12) \ - {X1, \ - X2, \ - X10, \ - X11, \ - COFF_OPT_##ID, \ - opt::Option::KIND##Class, \ - X9, \ - X8, \ - COFF_OPT_##GROUP, \ - COFF_OPT_##ALIAS, \ - X7, \ - X12}, +#define OPTION(...) \ + LLVM_CONSTRUCT_OPT_INFO_WITH_ID_PREFIX(COFF_OPT_, __VA_ARGS__), #include "COFFOptions.inc" #undef OPTION }; |
