Remap metadata attached to global variables.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 4 May 2017 23:29:39 +0000 (23:29 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 4 May 2017 23:29:39 +0000 (23:29 +0000)
commit9aff829f78331ef3718bf73ea81d319c91730808
tree54b57ffbeca29db77d5d01a6870b6b408f5211f9
parent8e476657a37e7159115d86dd2ee9d46976aa2977
Remap metadata attached to global variables.

Fix for PR32577.
Global variables may have !associated metadata, which includes a reference to another global. It needs remapping.

llvm-svn: 302203
llvm/lib/Transforms/Utils/ValueMapper.cpp
llvm/test/Linker/metadata-global.ll [new file with mode: 0644]