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;