summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/FunctionImport.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/Transforms/IPO/FunctionImport.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/Transforms/IPO/FunctionImport.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionImport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index 90b36aab363..5de0577f14e 100644
--- a/llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp
@@ -142,7 +142,7 @@ static void findExternalCalls(
ImportedName = Renamed;
}
// Compute the global identifier used in the summary index.
- auto CalledFunctionGlobalID = Function::getGlobalIdentifier(
+ auto CalledFunctionGlobalID = GlobalValue::getGlobalIdentifier(
CalledFunction->getName(), CalledFunction->getLinkage(),
CalledFunction->getParent()->getSourceFileName());
OpenPOWER on IntegriCloud