@@ -46,26 +46,6 @@ class MemProfReader {
46
46
return Iterator (this );
47
47
}
48
48
49
- // Return a const reference to the internal Id to Frame mappings.
50
- LLVM_DEPRECATED (" Use takeMemProfData instead" , " takeMemProfData" )
51
- const llvm::DenseMap<FrameId, Frame> &getFrameMapping () const {
52
- return IdToFrame;
53
- }
54
-
55
- // Return a const reference to the internal Id to call stacks.
56
- LLVM_DEPRECATED (" Use takeMemProfData instead" , " takeMemProfData" )
57
- const llvm::DenseMap<CallStackId, llvm::SmallVector<FrameId>> &
58
- getCallStacks () const {
59
- return CSIdToCallStack;
60
- }
61
-
62
- // Return a const reference to the internal function profile data.
63
- LLVM_DEPRECATED (" Use takeMemProfData instead" , " takeMemProfData" )
64
- const llvm::MapVector<GlobalValue::GUID, IndexedMemProfRecord> &
65
- getProfileData () const {
66
- return FunctionProfileData;
67
- }
68
-
69
49
// Take the complete profile data.
70
50
IndexedMemProfData takeMemProfData () {
71
51
// TODO: Once we replace the three member variables, namely IdToFrame,
@@ -116,24 +96,6 @@ class MemProfReader {
116
96
MemProfReader () = default;
117
97
virtual ~MemProfReader () = default ;
118
98
119
- // Initialize the MemProfReader with the frame mappings and profile contents.
120
- LLVM_DEPRECATED (" Construct MemProfReader with IndexedMemProfData" ,
121
- " MemProfReader" )
122
- MemProfReader(
123
- llvm::DenseMap<FrameId, Frame> FrameIdMap,
124
- llvm::MapVector<GlobalValue::GUID, IndexedMemProfRecord> ProfData);
125
-
126
- // Initialize the MemProfReader with the frame mappings, call stack mappings,
127
- // and profile contents.
128
- LLVM_DEPRECATED (" Construct MemProfReader with IndexedMemProfData" ,
129
- " MemProfReader" )
130
- MemProfReader(
131
- llvm::DenseMap<FrameId, Frame> FrameIdMap,
132
- llvm::DenseMap<CallStackId, llvm::SmallVector<FrameId>> CSIdMap,
133
- llvm::MapVector<GlobalValue::GUID, IndexedMemProfRecord> ProfData)
134
- : IdToFrame(std::move(FrameIdMap)), CSIdToCallStack(std::move(CSIdMap)),
135
- FunctionProfileData(std::move(ProfData)) {}
136
-
137
99
// Initialize the MemProfReader with the given MemProf profile.
138
100
MemProfReader (IndexedMemProfData MemProfData) {
139
101
for (const auto &[FrameId, F] : MemProfData.Frames )
0 commit comments