[llvm] r265180 - Fix buildbot lldb-amd64-ninja-netbsd7 failure
Rong Xu via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 1 13:15:04 PDT 2016
Author: xur
Date: Fri Apr 1 15:15:04 2016
New Revision: 265180
URL: http://llvm.org/viewvc/llvm-project?rev=265180&view=rev
Log:
Fix buildbot lldb-amd64-ninja-netbsd7 failure
Modified:
llvm/trunk/include/llvm/ProfileData/InstrProf.h
llvm/trunk/lib/ProfileData/InstrProf.cpp
Modified: llvm/trunk/include/llvm/ProfileData/InstrProf.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ProfileData/InstrProf.h?rev=265180&r1=265179&r2=265180&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ProfileData/InstrProf.h (original)
+++ llvm/trunk/include/llvm/ProfileData/InstrProf.h Fri Apr 1 15:15:04 2016
@@ -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 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
Modified: llvm/trunk/lib/ProfileData/InstrProf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/InstrProf.cpp?rev=265180&r1=265179&r2=265180&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/InstrProf.cpp (original)
+++ llvm/trunk/lib/ProfileData/InstrProf.cpp Fri Apr 1 15:15:04 2016
@@ -720,6 +720,10 @@ bool getValueProfDataFromInst(const 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())
More information about the llvm-commits
mailing list