[all-commits] [llvm/llvm-project] 7af4bb: [PDB] Remove unique_ptr wrapper around C13 line ta...

Reid Kleckner via All-commits all-commits at lists.llvm.org
Sat May 2 16:36:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7af4bb16417deeb1d01e7dbbbb2272f1f46753c6
      https://github.com/llvm/llvm-project/commit/7af4bb16417deeb1d01e7dbbbb2272f1f46753c6
  Author: Reid Kleckner <rnk at google.com>
  Date:   2020-05-02 (Sat, 02 May 2020)

  Changed paths:
    M llvm/include/llvm/DebugInfo/CodeView/DebugSubsectionRecord.h
    M llvm/include/llvm/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.h
    M llvm/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp
    M llvm/lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp
    M llvm/lib/ObjectYAML/COFFEmitter.cpp

  Log Message:
  -----------
  [PDB] Remove unique_ptr wrapper around C13 line table subsections

This accounts for a large portion of the memory allocations in LLD.
This DebugSubsectionRecordBuilder object can be stored directly in
C13Builders, it mostly wraps other subsections.

Remove the container kind field from the object. It is always the same
for all elements in the vector, and we can pass it in during writing.




More information about the All-commits mailing list