diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-12-19 06:06:18 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-12-19 06:06:18 +0000 |
commit | 46d7af57291fc2e4a2e721303389f5fc6c1b6999 (patch) | |
tree | 70f4a0e8023f711ab58c6a25a280a0b88bdd052a /llvm/lib/Linker/LinkModules.cpp | |
parent | c17d0bbfb32538093d1fd8b4e0ae4adc8c6c4dc7 (diff) | |
download | bcm5719-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/Linker/LinkModules.cpp')
-rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index 7f3e5b3bd2a..9ffdbc5dc86 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/lib/Linker/LinkModules.cpp @@ -1248,8 +1248,8 @@ void ModuleLinker::linkNamedMDNodes() { NamedMDNode *DestNMD = DstM->getOrInsertNamedMetadata(I->getName()); // Add Src elements into Dest node. for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) - DestNMD->addOperand(MapValue(I->getOperand(i), ValueMap, - RF_None, &TypeMap, &ValMaterializer)); + DestNMD->addOperand(MapMetadata(I->getOperand(i), ValueMap, RF_None, + &TypeMap, &ValMaterializer)); } } @@ -1257,7 +1257,7 @@ void ModuleLinker::linkNamedMDNodes() { /// /// FIXME: this creates an asymmetric result: we strip losing subprograms from /// DstM, but leave losing subprograms in SrcM. Instead we should also strip -/// losers from SrcM, but this requires extra plumbing in MapValue. +/// losers from SrcM, but this requires extra plumbing in MapMetadata. void ModuleLinker::stripReplacedSubprograms() { // Avoid quadratic runtime by returning early when there's nothing to do. if (OverridingFunctions.empty()) |