From ee422987b015c7a4b7c171a2ca4bc30b693fe87e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 19 Nov 2024 20:40:25 -0800 Subject: [PATCH] [memprof] Deprecate MemProfReader::getFrameMapping and its friends (NFC) All the consumers of the data from MemProfReader have switched to MemProfReader::takeMemProfData. This patch deprecates MemProfReader::getFrameMapping and its friends. --- llvm/include/llvm/ProfileData/MemProfReader.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/ProfileData/MemProfReader.h b/llvm/include/llvm/ProfileData/MemProfReader.h index de2167f97b0dc..6e35bb1d39c63 100644 --- a/llvm/include/llvm/ProfileData/MemProfReader.h +++ b/llvm/include/llvm/ProfileData/MemProfReader.h @@ -47,17 +47,20 @@ class MemProfReader { } // Return a const reference to the internal Id to Frame mappings. + LLVM_DEPRECATED("Use takeMemProfData instead", "takeMemProfData") const llvm::DenseMap &getFrameMapping() const { return IdToFrame; } // Return a const reference to the internal Id to call stacks. + LLVM_DEPRECATED("Use takeMemProfData instead", "takeMemProfData") const llvm::DenseMap> & getCallStacks() const { return CSIdToCallStack; } // Return a const reference to the internal function profile data. + LLVM_DEPRECATED("Use takeMemProfData instead", "takeMemProfData") const llvm::MapVector & getProfileData() const { return FunctionProfileData;