[all-commits] [llvm/llvm-project] 901ba0: [lldb] Implement SymbolFile::CopyType

Augusto Noronha via All-commits all-commits at lists.llvm.org
Fri Jan 20 13:02:23 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 901ba0fcae3651c81051fd8da2695bbc2bcb3c91
      https://github.com/llvm/llvm-project/commit/901ba0fcae3651c81051fd8da2695bbc2bcb3c91
  Author: Augusto Noronha <augusto2112 at me.com>
  Date:   2023-01-20 (Fri, 20 Jan 2023)

  Changed paths:
    M lldb/include/lldb/Symbol/SymbolFile.h
    M lldb/include/lldb/Symbol/SymbolFileOnDemand.h
    M lldb/include/lldb/Symbol/Type.h

  Log Message:
  -----------
  [lldb] Implement SymbolFile::CopyType

SymbolFiles should be the only point of creation of Types to ensure
that they aren't destroyed prematurely by keeping them in the
SymbolFile's TypeList. This patch hides the copy constructor of Types,
and adds a new CopyType function to SymbolFile, so Types can still be
copied safely.

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




More information about the All-commits mailing list