]> granicus.if.org Git - llvm/commit
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)
commit15650770132ba3e6e7214a28dfe0a0a01db8bd40
tree48d3c67b4809627c008884f01fe43b838a682bea
parent197e49d664c107eb9d82de0fe7e8d9a28a286812
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302203 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/ValueMapper.cpp
test/Linker/metadata-global.ll [new file with mode: 0644]