[all-commits] [llvm/llvm-project] 83dc41: [memprof] Clean up writer traits (NFC) (#88549)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Fri Apr 12 12:01:04 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 83dc41992dc602070f5429e2717352f60aad931c
      https://github.com/llvm/llvm-project/commit/83dc41992dc602070f5429e2717352f60aad931c
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-04-12 (Fri, 12 Apr 2024)

  Changed paths:
    M llvm/lib/ProfileData/InstrProfWriter.cpp

  Log Message:
  -----------
  [memprof] Clean up writer traits (NFC) (#88549)

RecordWriter does not live past the end of writeMemProfRecords, so it
can be safely on stack.

The constructor of FrameWriter does not take any parameter, so we can
let OnDiskChainedHashTableGenerator::Emit (with a single parameter)
default-construct an instance of the writer trait inside Emit.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list