summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ProfileData/InstrProf.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp
index 618bcebbdc4..cd7ddafd817 100644
--- a/llvm/lib/ProfileData/InstrProf.cpp
+++ b/llvm/lib/ProfileData/InstrProf.cpp
@@ -720,6 +720,10 @@ bool getValueProfDataFromInst(const Instruction &Inst,
return true;
}
+MDNode *getPGOFuncNameMetadata(const Function &F) {
+ return F.getMetadata(getPGOFuncNameMetadataName());
+}
+
void createPGOFuncNameMetadata(Function &F) {
const std::string &FuncName = getPGOFuncName(F);
if (FuncName == F.getName())
OpenPOWER on IntegriCloud