summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData/InstrProf.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-03-15 02:13:19 +0000
committerTeresa Johnson <tejohnson@google.com>2016-03-15 02:13:19 +0000
commitb43027d1e0ebc57f6efb8961f3eb4df1b0828ba1 (patch)
treef1b708d3e09b4614bde408def28fa7d0306e3745 /llvm/lib/ProfileData/InstrProf.cpp
parentee88b615007d848e3a37bf3b341fc05ea1282b49 (diff)
downloadbcm5719-llvm-b43027d1e0ebc57f6efb8961f3eb4df1b0828ba1.tar.gz
bcm5719-llvm-b43027d1e0ebc57f6efb8961f3eb4df1b0828ba1.zip
Move global ID computation from Function to GlobalValue (NFC)
Since the static getGlobalIdentifier and getGUID methods are now called for global values other than functions, reflect that by moving these methods to the GlobalValue class. llvm-svn: 263524
Diffstat (limited to 'llvm/lib/ProfileData/InstrProf.cpp')
-rw-r--r--llvm/lib/ProfileData/InstrProf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp
index e7e6753f9b3..66ac03770e7 100644
--- a/llvm/lib/ProfileData/InstrProf.cpp
+++ b/llvm/lib/ProfileData/InstrProf.cpp
@@ -80,7 +80,7 @@ std::string getPGOFuncName(StringRef RawFuncName,
GlobalValue::LinkageTypes Linkage,
StringRef FileName,
uint64_t Version LLVM_ATTRIBUTE_UNUSED) {
- return Function::getGlobalIdentifier(RawFuncName, Linkage, FileName);
+ return GlobalValue::getGlobalIdentifier(RawFuncName, Linkage, FileName);
}
std::string getPGOFuncName(const Function &F, uint64_t Version) {
OpenPOWER on IntegriCloud