[all-commits] [llvm/llvm-project] dfd499: [lldb][NFC] avoid unnecessary roundtrips between d...

Xu Jun via All-commits all-commits at lists.llvm.org
Mon Nov 1 22:15:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dfd499a61c45778b7f01458d50ccc384343f53d5
      https://github.com/llvm/llvm-project/commit/dfd499a61c45778b7f01458d50ccc384343f53d5
  Author: Xu Jun <jun1.xu at intel.com>
  Date:   2021-11-01 (Mon, 01 Nov 2021)

  Changed paths:
    M lldb/include/lldb/Target/PathMappingList.h
    M lldb/source/API/SBTarget.cpp
    M lldb/source/Commands/CommandObjectTarget.cpp
    M lldb/source/Core/Module.cpp
    M lldb/source/Core/ModuleList.cpp
    M lldb/source/Interpreter/OptionValuePathMappings.cpp
    M lldb/source/Target/PathMappingList.cpp
    M lldb/unittests/Target/FindFileTest.cpp
    M lldb/unittests/Target/PathMappingListTest.cpp

  Log Message:
  -----------
  [lldb][NFC] avoid unnecessary roundtrips between different string types

The amount of roundtrips between StringRefs, ConstStrings and std::strings is
getting a bit out of hand, this patch avoid the unnecessary roundtrips.

Reviewed By: wallace, aprantl

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




More information about the All-commits mailing list