[llvm] [memprof] Remove an unused parameter (PR #93895)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 30 16:37:17 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-pgo
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/93895.diff
2 Files Affected:
- (modified) llvm/include/llvm/ProfileData/InstrProfReader.h (+1-2)
- (modified) llvm/lib/ProfileData/InstrProfReader.cpp (+2-3)
``````````diff
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;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/93895
More information about the llvm-commits
mailing list