[Lldb-commits] [clang] [clang-tools-extra] [lld] [lldb] [llvm] Rework the `Option` library to reduce dynamic relocations (PR #119198)

Reid Kleckner via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 9 12:47:50 PST 2024


================
@@ -53,10 +53,8 @@ class OptTable {
 public:
   /// Entry for a single option instance in the option data table.
   struct Info {
-    /// A null terminated array of prefix strings to apply to name while
-    /// matching.
-    ArrayRef<StringLiteral> Prefixes;
-    StringLiteral PrefixedName;
+    unsigned PrefixesOffset;
+    unsigned PrefixedNameOffset;
     const char *HelpText;
----------------
rnk wrote:

Presumably applying similar techniques to HelpText and the remaining character pointers is a logical next step.

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


More information about the lldb-commits mailing list