xur updated this revision to Diff 52134. xur added a comment. sync the change in http://reviews.llvm.org/D18623.
http://reviews.llvm.org/D18624 Files: lib/CodeGen/CodeGenPGO.cpp Index: lib/CodeGen/CodeGenPGO.cpp =================================================================== --- lib/CodeGen/CodeGenPGO.cpp +++ lib/CodeGen/CodeGenPGO.cpp @@ -787,6 +787,11 @@ (llvm::InstrProfValueKind)ValueKind, NumValueSites[ValueKind]); + // Create PGOFuncName meta data. + llvm::Function *F = ValueSite->getFunction(); + if (!llvm::getPGOFuncNameMetadata(*F)) + llvm::createPGOFuncNameMetadata(*F); + NumValueSites[ValueKind]++; } }
Index: lib/CodeGen/CodeGenPGO.cpp =================================================================== --- lib/CodeGen/CodeGenPGO.cpp +++ lib/CodeGen/CodeGenPGO.cpp @@ -787,6 +787,11 @@ (llvm::InstrProfValueKind)ValueKind, NumValueSites[ValueKind]); + // Create PGOFuncName meta data. + llvm::Function *F = ValueSite->getFunction(); + if (!llvm::getPGOFuncNameMetadata(*F)) + llvm::createPGOFuncNameMetadata(*F); + NumValueSites[ValueKind]++; } }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits