@@ -270,12 +270,12 @@ template <> struct MappingTraits<bolt::BinaryProfileHeader> {
270
270
};
271
271
272
272
namespace bolt {
273
- struct PseudoProbeDesc {
273
+ struct ProfilePseudoProbeDesc {
274
274
std::vector<Hex64> GUID;
275
275
std::vector<Hex64> Hash;
276
276
std::vector<uint32_t > GUIDHashIdx; // Index of hash for that GUID in Hash
277
277
278
- bool operator ==(const PseudoProbeDesc &Other) const {
278
+ bool operator ==(const ProfilePseudoProbeDesc &Other) const {
279
279
// Only treat empty Desc as equal
280
280
return GUID.empty () && Other.GUID .empty () && Hash.empty () &&
281
281
Other.Hash .empty () && GUIDHashIdx.empty () &&
@@ -284,8 +284,8 @@ struct PseudoProbeDesc {
284
284
};
285
285
} // end namespace bolt
286
286
287
- template <> struct MappingTraits <bolt::PseudoProbeDesc > {
288
- static void mapping (IO &YamlIO, bolt::PseudoProbeDesc &PD) {
287
+ template <> struct MappingTraits <bolt::ProfilePseudoProbeDesc > {
288
+ static void mapping (IO &YamlIO, bolt::ProfilePseudoProbeDesc &PD) {
289
289
YamlIO.mapRequired (" gs" , PD.GUID );
290
290
YamlIO.mapRequired (" gh" , PD.GUIDHashIdx );
291
291
YamlIO.mapRequired (" hs" , PD.Hash );
@@ -295,7 +295,7 @@ template <> struct MappingTraits<bolt::PseudoProbeDesc> {
295
295
} // end namespace llvm
296
296
297
297
LLVM_YAML_IS_SEQUENCE_VECTOR (llvm::yaml::bolt::BinaryFunctionProfile)
298
- LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::yaml::bolt::PseudoProbeDesc )
298
+ LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::yaml::bolt::ProfilePseudoProbeDesc )
299
299
300
300
namespace llvm {
301
301
namespace yaml {
@@ -304,7 +304,7 @@ namespace bolt {
304
304
struct BinaryProfile {
305
305
BinaryProfileHeader Header;
306
306
std::vector<BinaryFunctionProfile> Functions;
307
- PseudoProbeDesc PseudoProbeDesc;
307
+ ProfilePseudoProbeDesc PseudoProbeDesc;
308
308
};
309
309
} // namespace bolt
310
310
@@ -313,7 +313,7 @@ template <> struct MappingTraits<bolt::BinaryProfile> {
313
313
YamlIO.mapRequired (" header" , BP.Header );
314
314
YamlIO.mapRequired (" functions" , BP.Functions );
315
315
YamlIO.mapOptional (" pseudo_probe_desc" , BP.PseudoProbeDesc ,
316
- bolt::PseudoProbeDesc ());
316
+ bolt::ProfilePseudoProbeDesc ());
317
317
}
318
318
};
319
319
0 commit comments