[llvm] [memprof] Drop the trait parameter (NFC) (PR #89461)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 19 15:04:42 PDT 2024
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/89461
OnDiskIterableChainedHashTable::Create can default-contruct a trait
object for us. We don't need to construct one on our own unless we
need to customize something (like a version number).
>From b3446b38cae9575f5027757d8b7f73d4cf5a4ed1 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Fri, 19 Apr 2024 13:51:55 -0700
Subject: [PATCH] [memprof] Drop the trait parameter (NFC)
OnDiskIterableChainedHashTable::Create can default-contruct a trait
object for us. We don't need to construct one on our own unless we
need to customize something (like a version number).
---
llvm/lib/ProfileData/InstrProfReader.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index b05bad7d59ec72..cefb6af12d0021 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -1272,13 +1272,13 @@ Error IndexedMemProfReader::deserialize(const unsigned char *Start,
MemProfFrameTable.reset(MemProfFrameHashTable::Create(
/*Buckets=*/Start + FrameTableOffset,
/*Payload=*/Start + FramePayloadOffset,
- /*Base=*/Start, memprof::FrameLookupTrait()));
+ /*Base=*/Start));
if (Version >= memprof::Version2)
MemProfCallStackTable.reset(MemProfCallStackHashTable::Create(
/*Buckets=*/Start + CallStackTableOffset,
/*Payload=*/Start + CallStackPayloadOffset,
- /*Base=*/Start, memprof::CallStackLookupTrait()));
+ /*Base=*/Start));
#ifdef EXPENSIVE_CHECKS
// Go through all the records and verify that CSId has been correctly
More information about the llvm-commits
mailing list