diff options
author | Rong Xu <xur@google.com> | 2016-04-01 20:15:04 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2016-04-01 20:15:04 +0000 |
commit | 92c2eae4e15eeb75aa7bb697bd6d524d810e04de (patch) | |
tree | 5f6931d8b525f1e2eebab06b048648932c7bb1ea /llvm/lib/ProfileData/InstrProf.cpp | |
parent | f739d8a2ed898934978e68ccabdfdb91be2db8c1 (diff) | |
download | bcm5719-llvm-92c2eae4e15eeb75aa7bb697bd6d524d810e04de.tar.gz bcm5719-llvm-92c2eae4e15eeb75aa7bb697bd6d524d810e04de.zip |
Fix buildbot lldb-amd64-ninja-netbsd7 failure
llvm-svn: 265180
Diffstat (limited to 'llvm/lib/ProfileData/InstrProf.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProf.cpp | 4 |
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()) |