mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 11:39:35 +00:00
Undo r135191 (i.e. reapply Chris's patch. Now linker maps NamedMDNodes first, so there is not any need to map DebugLoc).
llvm-svn: 135205
This commit is contained in:
parent
6f94a7469d
commit
e9962ef77f
@ -167,9 +167,10 @@ void llvm::RemapInstruction(Instruction *I, ValueToValueMapTy &VMap,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remap attached metadata.
|
// Remap attached metadata. Don't bother remapping DebugLoc, it can never
|
||||||
|
// have mappings to do.
|
||||||
SmallVector<std::pair<unsigned, MDNode *>, 4> MDs;
|
SmallVector<std::pair<unsigned, MDNode *>, 4> MDs;
|
||||||
I->getAllMetadata(MDs);
|
I->getAllMetadataOtherThanDebugLoc(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