[llvm] [memprof] Remove an unused parameter (PR #93895)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu May 30 16:36:48 PDT 2024
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/93895
None
>From 7a1a827e04da5a3a5e8d44ceebdfdbf93257c42c Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Thu, 30 May 2024 16:29:30 -0700
Subject: [PATCH] [memprof] Remove an unused parameter
---
llvm/include/llvm/ProfileData/InstrProfReader.h | 3 +--
llvm/lib/ProfileData/InstrProfReader.cpp | 5 ++---
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/llvm/include/llvm/ProfileData/InstrProfReader.h b/llvm/include/llvm/ProfileData/InstrProfReader.h
index 1c3d4c795f631..ebddf081ae213 100644
--- a/llvm/include/llvm/ProfileData/InstrProfReader.h
+++ b/llvm/include/llvm/ProfileData/InstrProfReader.h
@@ -666,8 +666,7 @@ class IndexedMemProfReader {
Error deserializeV012(const unsigned char *Start, const unsigned char *Ptr,
uint64_t FirstWord, memprof::IndexedVersion Version);
- Error deserializeV3(const unsigned char *Start, const unsigned char *Ptr,
- memprof::IndexedVersion Version);
+ Error deserializeV3(const unsigned char *Start, const unsigned char *Ptr);
public:
IndexedMemProfReader() = default;
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index 1e66716294689..7687e2b04fabc 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -1259,8 +1259,7 @@ Error IndexedMemProfReader::deserializeV012(const unsigned char *Start,
}
Error IndexedMemProfReader::deserializeV3(const unsigned char *Start,
- const unsigned char *Ptr,
- memprof::IndexedVersion Version) {
+ const unsigned char *Ptr) {
// The offset in the stream right before invoking
// CallStackTableGenerator.Emit.
const uint64_t CallStackPayloadOffset =
@@ -1327,7 +1326,7 @@ Error IndexedMemProfReader::deserialize(const unsigned char *Start,
return E;
break;
case memprof::Version3:
- if (Error E = deserializeV3(Start, Ptr, Version))
+ if (Error E = deserializeV3(Start, Ptr))
return E;
break;
}
More information about the llvm-commits
mailing list