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

Alexis Engelke via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 22:52:58 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";
----------------
aengelke wrote:

All these variables could be defined as static variables inside optionTables() now?

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


More information about the cfe-commits mailing list