Skip to content

Commit b741da1

Browse files
author
Snehasish Kumar
committed
Drop sequence traits which are unused for CallSiteInfo.
1 parent 32d6cd3 commit b741da1

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

llvm/include/llvm/ProfileData/MemProfYAML.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -162,21 +162,6 @@ template <> struct MappingTraits<memprof::CallSiteInfo> {
162162
}
163163
};
164164

165-
// Add sequence traits for SmallVector<CallSiteInfo>
166-
template <unsigned N>
167-
struct SequenceTraits<SmallVector<memprof::CallSiteInfo, N>> {
168-
static size_t size(IO &IO, SmallVector<memprof::CallSiteInfo, N> &Seq) {
169-
return Seq.size();
170-
}
171-
172-
static memprof::CallSiteInfo &
173-
element(IO &IO, SmallVector<memprof::CallSiteInfo, N> &Seq, size_t Index) {
174-
if (Index >= Seq.size())
175-
Seq.resize(Index + 1);
176-
return Seq[Index];
177-
}
178-
};
179-
180165
template <> struct MappingTraits<memprof::GUIDMemProfRecordPair> {
181166
static void mapping(IO &Io, memprof::GUIDMemProfRecordPair &Pair) {
182167
Io.mapRequired("GUID", Pair.GUID);

0 commit comments

Comments
 (0)