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

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 9 17:56:55 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;
----------------
chandlerc wrote:

Yep, I stopped at the "smallest" increment where it seemed self-cohesive.

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


More information about the llvm-commits mailing list