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

Chandler Carruth via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 10 18:54:46 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;
----------------
chandlerc wrote:

FWIW, I put together a simple abstraction here: https://github.com/llvm/llvm-project/pull/119488

Happy for suggestions on a stronger one, a different API, etc.

My preference would be to land independently and then connect. But if you'd like to see one or the other land first and roll in, let me know.

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


More information about the lldb-commits mailing list