@@ -270,12 +270,12 @@ template <> struct MappingTraits<bolt::BinaryProfileHeader> {
270270};
271271
272272namespace bolt {
273- struct PseudoProbeDesc {
273+ struct ProfilePseudoProbeDesc {
274274 std::vector<Hex64> GUID;
275275 std::vector<Hex64> Hash;
276276 std::vector<uint32_t > GUIDHashIdx; // Index of hash for that GUID in Hash
277277
278- bool operator ==(const PseudoProbeDesc &Other) const {
278+ bool operator ==(const ProfilePseudoProbeDesc &Other) const {
279279 // Only treat empty Desc as equal
280280 return GUID.empty () && Other.GUID .empty () && Hash.empty () &&
281281 Other.Hash .empty () && GUIDHashIdx.empty () &&
@@ -284,8 +284,8 @@ struct PseudoProbeDesc {
284284};
285285} // end namespace bolt
286286
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) {
289289 YamlIO.mapRequired (" gs" , PD.GUID );
290290 YamlIO.mapRequired (" gh" , PD.GUIDHashIdx );
291291 YamlIO.mapRequired (" hs" , PD.Hash );
@@ -295,7 +295,7 @@ template <> struct MappingTraits<bolt::PseudoProbeDesc> {
295295} // end namespace llvm
296296
297297LLVM_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 )
299299
300300namespace llvm {
301301namespace yaml {
@@ -304,7 +304,7 @@ namespace bolt {
304304struct BinaryProfile {
305305 BinaryProfileHeader Header;
306306 std::vector<BinaryFunctionProfile> Functions;
307- PseudoProbeDesc PseudoProbeDesc;
307+ ProfilePseudoProbeDesc PseudoProbeDesc;
308308};
309309} // namespace bolt
310310
@@ -313,7 +313,7 @@ template <> struct MappingTraits<bolt::BinaryProfile> {
313313 YamlIO.mapRequired (" header" , BP.Header );
314314 YamlIO.mapRequired (" functions" , BP.Functions );
315315 YamlIO.mapOptional (" pseudo_probe_desc" , BP.PseudoProbeDesc ,
316- bolt::PseudoProbeDesc ());
316+ bolt::ProfilePseudoProbeDesc ());
317317 }
318318};
319319
0 commit comments