Skip to content

Commit d6e6478

Browse files
[memprof] Remove a dead constructor in AllocationInfo (NFC) (llvm#117427)
This patch removes a dead constructor in AllocationInfo. We used to use it for MemProf Version 1 deserialization purposes via MemProfRecord::MemProfRecord.
1 parent 43e3871 commit d6e6478

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/include/llvm/ProfileData/MemProf.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -389,14 +389,6 @@ struct AllocationInfo {
389389
PortableMemInfoBlock Info;
390390

391391
AllocationInfo() = default;
392-
AllocationInfo(
393-
const IndexedAllocationInfo &IndexedAI,
394-
llvm::function_ref<const Frame(const FrameId)> IdToFrameCallback) {
395-
for (const FrameId &Id : IndexedAI.CallStack) {
396-
CallStack.push_back(IdToFrameCallback(Id));
397-
}
398-
Info = IndexedAI.Info;
399-
}
400392

401393
void printYAML(raw_ostream &OS) const {
402394
OS << " -\n";

0 commit comments

Comments
 (0)