NVPTX: Use MapMetadata() instead of custom/stale/untested logic
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 14 Jan 2015 05:14:30 +0000 (05:14 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 14 Jan 2015 05:14:30 +0000 (05:14 +0000)
commit9f6bddd4b201b14d2fc2921a5bdc0a156c64a5f4
tree5fe587ed649dd544f817cb8a062ef51a10f0d86a
parentf864ae2745376b5e996a1d1fdfef32c0bfd8567e
NVPTX: Use MapMetadata() instead of custom/stale/untested logic

Copy the `GVMap` over to a standard `ValueToValueMapTy` so that we can
reuse the `MapMetadata()` logic.  Unfortunately the `GVMap` can't just
be replaced, since `MapMetadata()` likes to modify the map, but at least
this will prevent NVPTX from bitrotting.

llvm-svn: 225944
llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp