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)
commit1f6209189c34cd63872dcc3104fba8c4596979a7
tree36f7c92069e5685a1bb3e24033b5b609f2dfe186
parent1dcdcc00777e091e6fdb75a7069647091883771c
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225944 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp