summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-10-29 21:52:23 +0000
committerTeresa Johnson <tejohnson@google.com>2016-10-29 21:52:23 +0000
commit38d4df714c98f6ead02221e17bf6cbb9e2fdc87b (patch)
tree23d701f1a5c4f03fea4b6a13bd96d7e8721f0689 /llvm/lib/Transforms
parent1b9c2be8f47247aa9ea7e76809f94a0e3095a407 (diff)
downloadbcm5719-llvm-38d4df714c98f6ead02221e17bf6cbb9e2fdc87b.tar.gz
bcm5719-llvm-38d4df714c98f6ead02221e17bf6cbb9e2fdc87b.zip
[ThinLTO] Rename doPromoteLocalToGlobal to shouldPromoteLocalToGlobal (NFC)
Rename as suggested in code review for D26063. llvm-svn: 285508
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/FunctionImportUtils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp b/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp
index f1af20a62ac..d14920575a4 100644
--- a/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp
+++ b/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp
@@ -48,7 +48,7 @@ bool FunctionImportGlobalProcessing::doImportAsDefinition(
GlobalsToImport);
}
-bool FunctionImportGlobalProcessing::doPromoteLocalToGlobal(
+bool FunctionImportGlobalProcessing::shouldPromoteLocalToGlobal(
const GlobalValue *SGV) {
assert(SGV->hasLocalLinkage());
// Both the imported references and the original local variable must
@@ -193,9 +193,9 @@ FunctionImportGlobalProcessing::getLinkage(const GlobalValue *SGV,
void FunctionImportGlobalProcessing::processGlobalForThinLTO(GlobalValue &GV) {
bool DoPromote = false;
if (GV.hasLocalLinkage() &&
- ((DoPromote = doPromoteLocalToGlobal(&GV)) || isPerformingImport())) {
+ ((DoPromote = shouldPromoteLocalToGlobal(&GV)) || isPerformingImport())) {
// Once we change the name or linkage it is difficult to determine
- // again whether we should promote since doPromoteLocalToGlobal needs
+ // again whether we should promote since shouldPromoteLocalToGlobal needs
// to locate the summary (based on GUID from name and linkage). Therefore,
// use DoPromote result saved above.
GV.setName(getName(&GV, DoPromote));
OpenPOWER on IntegriCloud