[all-commits] [llvm/llvm-project] 9e6d48: [lldb][NFCI] Module constructor should take ConstS...

Alex via All-commits all-commits at lists.llvm.org
Thu Aug 17 10:40:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e6d48ef6085b762d8eb2531bbb481f57446da1c
      https://github.com/llvm/llvm-project/commit/9e6d48ef6085b762d8eb2531bbb481f57446da1c
  Author: Alex Langford <alangford at apple.com>
  Date:   2023-08-17 (Thu, 17 Aug 2023)

  Changed paths:
    M lldb/include/lldb/Core/Module.h
    M lldb/source/Core/Module.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp

  Log Message:
  -----------
  [lldb][NFCI] Module constructor should take ConstString by value

ConstStrings are super cheap to copy around. It is often more expensive
to pass a pointer and potentially dereference it than just to always copy it.

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




More information about the All-commits mailing list