diff options
author | Teresa Johnson <tejohnson@google.com> | 2025-05-29 11:51:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-29 11:51:53 -0700 |
commit | 7625d2e77cfd14b371c0cd159dd690eafa5c226b (patch) | |
tree | 7ef2d67fb240e9360a7f3726d78c1fb3ab4e79fe /llvm/lib/ProfileData/InstrProfWriter.cpp | |
parent | 945e7d33e803a0a2d9597bf2715f6370110c2dea (diff) | |
download | llvm-7625d2e77cfd14b371c0cd159dd690eafa5c226b.zip llvm-7625d2e77cfd14b371c0cd159dd690eafa5c226b.tar.gz llvm-7625d2e77cfd14b371c0cd159dd690eafa5c226b.tar.bz2 |
[MemProf] Summary section cleanup (NFC) (#142003)
Address post-commit review comments from PR141805. Misc cleanup but the
biggest changes are moving some common utilities to new MemProfCommon
files to reduce unnecessary includes.
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfWriter.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfWriter.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp index 7a49811..4d92e9d 100644 --- a/llvm/lib/ProfileData/InstrProfWriter.cpp +++ b/llvm/lib/ProfileData/InstrProfWriter.cpp @@ -618,12 +618,9 @@ Error InstrProfWriter::writeImpl(ProfOStream &OS) { if (static_cast<bool>(ProfileKind & InstrProfKind::MemProf)) { MemProfSectionStart = OS.tell(); - // Get the finalized MemProf summary that was built when adding records. - auto MemProfSum = MemProfSumBuilder.getSummary(); - if (auto E = writeMemProf( OS, MemProfData, MemProfVersionRequested, MemProfFullSchema, - std::move(DataAccessProfileData), MemProfSum.get())) + std::move(DataAccessProfileData), MemProfSumBuilder.getSummary())) return E; } |