[Lldb-commits] [clang] [lld] [lldb] [llvm] [Option] Shrink Info from 40 to 24 bytes (PR #224807)
Alexis Engelke via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 18 23:07:58 PDT 2026
================
@@ -433,6 +427,29 @@ static void emitOptionParser(const RecordKeeper &Records, raw_ostream &OS) {
}
OS << "\n};\n\n";
+ // Rarely set fields, in OptTable::InfoExtra order. Options with equal values
+ // share a row; row 0 is all zero.
+ OS << "constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = "
+ "{\n {0, 0, 0, 0, 0},\n";
+ std::map<std::array<unsigned, 5>, unsigned> ExtraRows;
----------------
aengelke wrote:
DenseMap (maybe with reserve)?
https://github.com/llvm/llvm-project/pull/224807
More information about the lldb-commits
mailing list