[Lldb-commits] [clang] [lld] [lldb] [llvm] [Option] Emit the Info table from TableGen. NFC (PR #224508)

Alexis Engelke via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 18 00:14:12 PDT 2026


================
@@ -57,27 +57,14 @@ enum ID {
 };
 
 namespace rc_opt {
-#define OPTTABLE_STR_TABLE_CODE
+#define OPTTABLE_CODE
 #include "Opts.inc"
-#undef OPTTABLE_STR_TABLE_CODE
-
-#define OPTTABLE_PREFIXES_TABLE_CODE
-#include "Opts.inc"
-#undef OPTTABLE_PREFIXES_TABLE_CODE
-
-static constexpr opt::OptTable::Info InfoTable[] = {
-#define OPTION(...) LLVM_CONSTRUCT_OPT_INFO(__VA_ARGS__),
-#include "Opts.inc"
-#undef OPTION
-};
+#undef OPTTABLE_CODE
----------------
aengelke wrote:

Emit `#undef` in tablegen? We do this for several other tablegen-generated files as well.

https://github.com/llvm/llvm-project/pull/224508


More information about the lldb-commits mailing list