commit | 953e1a48f02031be36094d5bfaf2685cf130bd02 | [log] [tgz] |
---|---|---|
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Thu Jan 08 22:42:30 2015 +0000 |
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Thu Jan 08 22:42:30 2015 +0000 |
tree | 6cc3fb579f362928718a30208bbd81e93c7b9332 | |
parent | 4bbe428cc5d734ac53af9821e6dc0c280d1eeac4 [diff] |
Utils: Keep distinct MDNodes distinct in MapMetadata() Create new copies of distinct `MDNode`s instead of following the uniquing `MDNode` logic. Just like self-references (or other cycles), `MapMetadata()` creates a new node. In practice most calls use `RF_NoModuleLevelChanges`, in which case nothing is duplicated anyway. Part of PR22111. llvm-svn: 225476