Skip to content

Commit ab7201a

Browse files
[memprof] Deprecate MemProfReader::getFrameMapping and its friends (NFC) (#116919)
All the consumers of the data from MemProfReader have switched to MemProfReader::takeMemProfData. This patch deprecates MemProfReader::getFrameMapping and its friends.
1 parent f88c913 commit ab7201a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/include/llvm/ProfileData/MemProfReader.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,20 @@ class MemProfReader {
4747
}
4848

4949
// Return a const reference to the internal Id to Frame mappings.
50+
LLVM_DEPRECATED("Use takeMemProfData instead", "takeMemProfData")
5051
const llvm::DenseMap<FrameId, Frame> &getFrameMapping() const {
5152
return IdToFrame;
5253
}
5354

5455
// Return a const reference to the internal Id to call stacks.
56+
LLVM_DEPRECATED("Use takeMemProfData instead", "takeMemProfData")
5557
const llvm::DenseMap<CallStackId, llvm::SmallVector<FrameId>> &
5658
getCallStacks() const {
5759
return CSIdToCallStack;
5860
}
5961

6062
// Return a const reference to the internal function profile data.
63+
LLVM_DEPRECATED("Use takeMemProfData instead", "takeMemProfData")
6164
const llvm::MapVector<GlobalValue::GUID, IndexedMemProfRecord> &
6265
getProfileData() const {
6366
return FunctionProfileData;

0 commit comments

Comments
 (0)