[clang] [lld] [lldb] [llvm] [Option] Replace the OptionTables object with a function. NFC (PR #224805)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 23:22:26 PDT 2026


================
@@ -454,7 +434,7 @@ static void emitOptionParser(const RecordKeeper &Records, raw_ostream &OS) {
   OS << "\n};\n\n";
 
   // Dump the option table in OptTable::Info field order.
-  OS << "static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {\n";
+  OS << "constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {\n";
----------------
MaskRay wrote:

 Done. The tables are now static constexpr locals of optionTables().

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


More information about the cfe-commits mailing list