@@ -122,14 +122,6 @@ MATCHER_P4(FrameContains, FunctionName, LineOffset, Column, Inline, "") {
122
122
return false ;
123
123
}
124
124
125
- MemProfSchema getFullSchema () {
126
- MemProfSchema Schema;
127
- #define MIBEntryDef (NameTag, Name, Type ) Schema.push_back(Meta::Name);
128
- #include " llvm/ProfileData/MIBEntryDef.inc"
129
- #undef MIBEntryDef
130
- return Schema;
131
- }
132
-
133
125
TEST (MemProf, FillsValue) {
134
126
std::unique_ptr<MockSymbolizer> Symbolizer (new MockSymbolizer ());
135
127
@@ -248,7 +240,7 @@ TEST(MemProf, PortableWrapper) {
248
240
/* dealloc_timestamp=*/ 2000 , /* alloc_cpu=*/ 3 ,
249
241
/* dealloc_cpu=*/ 4 );
250
242
251
- const auto Schema = getFullSchema ();
243
+ const auto Schema = llvm::memprof::PortableMemInfoBlock:: getFullSchema ();
252
244
PortableMemInfoBlock WriteBlock (Info);
253
245
254
246
std::string Buffer;
@@ -271,7 +263,7 @@ TEST(MemProf, PortableWrapper) {
271
263
// Version0 and Version1 serialize IndexedMemProfRecord in the same format, so
272
264
// we share one test.
273
265
TEST (MemProf, RecordSerializationRoundTripVersion0And1) {
274
- const MemProfSchema Schema = getFullSchema ();
266
+ const auto Schema = llvm::memprof::PortableMemInfoBlock:: getFullSchema ();
275
267
276
268
MemInfoBlock Info (/* size=*/ 16 , /* access_count=*/ 7 , /* alloc_timestamp=*/ 1000 ,
277
269
/* dealloc_timestamp=*/ 2000 , /* alloc_cpu=*/ 3 ,
@@ -305,7 +297,7 @@ TEST(MemProf, RecordSerializationRoundTripVersion0And1) {
305
297
}
306
298
307
299
TEST (MemProf, RecordSerializationRoundTripVerion2) {
308
- const MemProfSchema Schema = getFullSchema ();
300
+ const auto Schema = llvm::memprof::PortableMemInfoBlock:: getFullSchema ();
309
301
310
302
MemInfoBlock Info (/* size=*/ 16 , /* access_count=*/ 7 , /* alloc_timestamp=*/ 1000 ,
311
303
/* dealloc_timestamp=*/ 2000 , /* alloc_cpu=*/ 3 ,
0 commit comments