summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CloneModule.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-12-19 06:06:18 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-12-19 06:06:18 +0000
commit46d7af57291fc2e4a2e721303389f5fc6c1b6999 (patch)
tree70f4a0e8023f711ab58c6a25a280a0b88bdd052a /llvm/lib/Transforms/Utils/CloneModule.cpp
parentc17d0bbfb32538093d1fd8b4e0ae4adc8c6c4dc7 (diff)
downloadbcm5719-llvm-46d7af57291fc2e4a2e721303389f5fc6c1b6999.tar.gz
bcm5719-llvm-46d7af57291fc2e4a2e721303389f5fc6c1b6999.zip
Rename MapValue(Metadata*) to MapMetadata()
Instead of reusing the name `MapValue()` when mapping `Metadata`, use `MapMetadata()`. The old name doesn't make much sense after the `Metadata`/`Value` split. llvm-svn: 224566
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneModule.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneModule.cpp b/llvm/lib/Transforms/Utils/CloneModule.cpp
index d078c96f372..d05d25164cd 100644
--- a/llvm/lib/Transforms/Utils/CloneModule.cpp
+++ b/llvm/lib/Transforms/Utils/CloneModule.cpp
@@ -118,7 +118,7 @@ Module *llvm::CloneModule(const Module *M, ValueToValueMapTy &VMap) {
const NamedMDNode &NMD = *I;
NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName());
for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i)
- NewNMD->addOperand(MapValue(NMD.getOperand(i), VMap));
+ NewNMD->addOperand(MapMetadata(NMD.getOperand(i), VMap));
}
return New;
OpenPOWER on IntegriCloud