summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Metadata.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2015-12-30 21:13:55 +0000
committerTeresa Johnson <tejohnson@google.com>2015-12-30 21:13:55 +0000
commit96f7f81aa35274a1944cfd5106a2f53010b232c0 (patch)
treec201dccd7cea3a90887dc82da527a6581a10a15f /llvm/lib/IR/Metadata.cpp
parentb88ea354fed84c560a9b56d1fbbfd66b7a0f6c20 (diff)
downloadbcm5719-llvm-96f7f81aa35274a1944cfd5106a2f53010b232c0.tar.gz
bcm5719-llvm-96f7f81aa35274a1944cfd5106a2f53010b232c0.zip
[ThinLTO] Rename variables used in metadata linking (NFC)
As suggested in review for r255909, rename MDMaterialized to AllowTemps, and identify the name of the boolean flag being set in calls to saveMetadataList. llvm-svn: 256653
Diffstat (limited to 'llvm/lib/IR/Metadata.cpp')
-rw-r--r--llvm/lib/IR/Metadata.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp
index f9543a65858..d8eaceb9ea2 100644
--- a/llvm/lib/IR/Metadata.cpp
+++ b/llvm/lib/IR/Metadata.cpp
@@ -557,7 +557,7 @@ void MDNode::decrementUnresolvedOperandCount() {
resolve();
}
-void MDNode::resolveCycles(bool MDMaterialized) {
+void MDNode::resolveCycles(bool AllowTemps) {
if (isResolved())
return;
@@ -570,7 +570,7 @@ void MDNode::resolveCycles(bool MDMaterialized) {
if (!N)
continue;
- if (N->isTemporary() && !MDMaterialized)
+ if (N->isTemporary() && AllowTemps)
continue;
assert(!N->isTemporary() &&
"Expected all forward declarations to be resolved");
OpenPOWER on IntegriCloud