[all-commits] [llvm/llvm-project] 303b27: [lldb] Delete IRExecutionUnit::SearchSpec

Alex via All-commits all-commits at lists.llvm.org
Wed Sep 8 11:28:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 303b27f21b98a45621d39f941c88c7e30d69fbe7
      https://github.com/llvm/llvm-project/commit/303b27f21b98a45621d39f941c88c7e30d69fbe7
  Author: Alex Langford <apl at fb.com>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M lldb/include/lldb/Expression/IRExecutionUnit.h
    M lldb/source/Expression/IRExecutionUnit.cpp

  Log Message:
  -----------
  [lldb] Delete IRExecutionUnit::SearchSpec

IRExecutionUnit::SearchSpec is a struct that encapsulates information
needed to look for a symbol. Specifically, it is comprised of a name
represented with a ConstString and a FunctionNameType mask.
Because the mask is unused (effectively always set to
eFunctionNameTypeFull), we can remove the mask and replace all uses with
eFunctionNameTypeFull.  After doing that, SearchSpec is effectively a
wrapper around a ConstString.

As an aside, SearchSpec is similar in purpose to Module::LookupInfo. I
briefly considered replacing uses of SearchSpec with LookupInfo, but
the current code only cares about symbol names (treating them as
eFunctionNameTypeFull). This code does care about language type, so
LookupInfo may be appropriate for IRExecutionUnit in the future.

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




More information about the All-commits mailing list