[all-commits] [llvm/llvm-project] 643ba9: [lldb][NFCI] Remove use of ConstString from Option...

Alex via All-commits all-commits at lists.llvm.org
Thu Jun 8 15:22:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 643ba926c1f618401c86dc37e659df795db2e1a0
      https://github.com/llvm/llvm-project/commit/643ba926c1f618401c86dc37e659df795db2e1a0
  Author: Alex Langford <alangford at apple.com>
  Date:   2023-06-08 (Thu, 08 Jun 2023)

  Changed paths:
    M lldb/include/lldb/Interpreter/OptionValue.h
    M lldb/include/lldb/Interpreter/OptionValueProperties.h
    M lldb/source/Interpreter/OptionValueProperties.cpp

  Log Message:
  -----------
  [lldb][NFCI] Remove use of ConstString from OptionValueProperties

In the interest of keeping the ConstString StringPool small, this patch
aims to remove the use of ConstString from OptionValueProperties.

We can maintain quick lookups by using an llvm::StringMap to find the
correct index by name.

Differential Revision: https://reviews.llvm.org/D152210




More information about the All-commits mailing list