mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
revert r135172 until Devang and I figure out the right answer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135191 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e540c7422c
commit
f546453466
@ -167,10 +167,9 @@ void llvm::RemapInstruction(Instruction *I, ValueToValueMapTy &VMap,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remap attached metadata. Don't bother remapping DebugLoc, it can never
|
// Remap attached metadata.
|
||||||
// have mappings to do.
|
|
||||||
SmallVector<std::pair<unsigned, MDNode *>, 4> MDs;
|
SmallVector<std::pair<unsigned, MDNode *>, 4> MDs;
|
||||||
I->getAllMetadataOtherThanDebugLoc(MDs);
|
I->getAllMetadata(MDs);
|
||||||
for (SmallVectorImpl<std::pair<unsigned, MDNode *> >::iterator
|
for (SmallVectorImpl<std::pair<unsigned, MDNode *> >::iterator
|
||||||
MI = MDs.begin(), ME = MDs.end(); MI != ME; ++MI) {
|
MI = MDs.begin(), ME = MDs.end(); MI != ME; ++MI) {
|
||||||
MDNode *Old = MI->second;
|
MDNode *Old = MI->second;
|
||||||
|
Loading…
Reference in New Issue
Block a user