[PATCH] D157028: [llvm] Extract common `OptTable` bits into macros

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 3 19:36:12 PDT 2023


MaskRay added inline comments.


================
Comment at: lld/ELF/Driver.h:28
   OPT_INVALID = 0,
-#define OPTION(_1, _2, ID, _4, _5, _6, _7, _8, _9, _10, _11, _12) OPT_##ID,
+#define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__),
 #include "Options.inc"
----------------
lld/wasm lld/COFF lld/MachO are not updated?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157028/new/

https://reviews.llvm.org/D157028



More information about the cfe-commits mailing list