diff options
author | Kazu Hirata <kazu@google.com> | 2024-04-25 12:12:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 12:12:28 -0700 |
commit | cb9589b2273e99d9c9a64c97416696a1690932a8 (patch) | |
tree | 11cdb7e76c3fa919912e8e9272a12b7579949f6f /llvm/lib/ProfileData/InstrProfWriter.cpp | |
parent | f72611b40de8c060c3901dab0ee9f8424dd3012b (diff) | |
download | llvm-cb9589b2273e99d9c9a64c97416696a1690932a8.zip llvm-cb9589b2273e99d9c9a64c97416696a1690932a8.tar.gz llvm-cb9589b2273e99d9c9a64c97416696a1690932a8.tar.bz2 |
[memprof] Move getFullSchema and getHotColdSchema outside PortableMemInfoBlock (#90103)
These functions do not operate on PortableMemInfoBlock. This patch
moves them outside the class.
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfWriter.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfWriter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp index 70ae57f..e1846fc 100644 --- a/llvm/lib/ProfileData/InstrProfWriter.cpp +++ b/llvm/lib/ProfileData/InstrProfWriter.cpp @@ -508,7 +508,7 @@ static Error writeMemProfV0( OS.write(0ULL); // Reserve space for the memprof frame payload offset. OS.write(0ULL); // Reserve space for the memprof frame table offset. - auto Schema = memprof::PortableMemInfoBlock::getFullSchema(); + auto Schema = memprof::getFullSchema(); writeMemProfSchema(OS, Schema); uint64_t RecordTableOffset = @@ -534,7 +534,7 @@ static Error writeMemProfV1( OS.write(0ULL); // Reserve space for the memprof frame payload offset. OS.write(0ULL); // Reserve space for the memprof frame table offset. - auto Schema = memprof::PortableMemInfoBlock::getFullSchema(); + auto Schema = memprof::getFullSchema(); writeMemProfSchema(OS, Schema); uint64_t RecordTableOffset = @@ -565,9 +565,9 @@ static Error writeMemProfV2( OS.write(0ULL); // Reserve space for the memprof call stack payload offset. OS.write(0ULL); // Reserve space for the memprof call stack table offset. - auto Schema = memprof::PortableMemInfoBlock::getHotColdSchema(); + auto Schema = memprof::getHotColdSchema(); if (MemProfFullSchema) - Schema = memprof::PortableMemInfoBlock::getFullSchema(); + Schema = memprof::getFullSchema(); writeMemProfSchema(OS, Schema); uint64_t RecordTableOffset = |