[llvm] [MemProf] Add v4 which contains CalleeGuids to CallSiteInfo. (PR #137394)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 25 18:22:36 PDT 2025


================
@@ -258,13 +248,12 @@ static Error writeMemProfV3(ProfOStream &OS,
                                      NumElements);
 
   uint64_t RecordPayloadOffset = OS.tell();
-  uint64_t RecordTableOffset =
-      writeMemProfRecords(OS, MemProfData.Records, &Schema, memprof::Version3,
-                          &MemProfCallStackIndexes);
+  uint64_t RecordTableOffset = writeMemProfRecords(
+      OS, MemProfData.Records, &Schema, Version, // Pass Version
----------------
mingmingl-llvm wrote:

nit: I think we don't need `// Pass Version` or other parameter since each parameter is named

https://github.com/llvm/llvm-project/pull/137394


More information about the llvm-commits mailing list