mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224566 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user