mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-17 05:20:32 +00:00
Fix buildbot lldb-amd64-ninja-netbsd7 failure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265180 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c9b8f68005
commit
ba623ac1b5
@ -19,7 +19,6 @@
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/ADT/StringSet.h"
|
||||
#include "llvm/IR/Function.h"
|
||||
#include "llvm/IR/GlobalValue.h"
|
||||
#include "llvm/IR/Metadata.h"
|
||||
#include "llvm/ProfileData/InstrProfData.inc"
|
||||
@ -250,9 +249,7 @@ bool getValueProfDataFromInst(const Instruction &Inst,
|
||||
inline StringRef getPGOFuncNameMetadataName() { return "PGOFuncName"; }
|
||||
|
||||
/// Return the PGOFuncName meta data associated with a function.
|
||||
inline MDNode *getPGOFuncNameMetadata(const Function &F) {
|
||||
return F.getMetadata(getPGOFuncNameMetadataName());
|
||||
}
|
||||
MDNode *getPGOFuncNameMetadata(const Function &F);
|
||||
|
||||
/// Create the PGOFuncName meta data if PGOFuncName is different from
|
||||
/// function's raw name. This should only apply to internal linkage functions
|
||||
|
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user