ThinLTOBitcodeWriter: Include globals associated with type metadata globals in the...
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 29 Jul 2019 17:22:40 +0000 (17:22 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 29 Jul 2019 17:22:40 +0000 (17:22 +0000)
commitdd9682196be6741879c76fa12e89164537d1f96d
tree95e7edad50d26ec1f870a0655faa459a0a8c934e
parent6a253d378bc05c30b3d9f32fdaf973714de3e99c
ThinLTOBitcodeWriter: Include globals associated with type metadata globals in the merged module.

Globals that are associated with globals with type metadata need to appear
in the merged module because they will reference the global's section directly.

Differential Revision: https://reviews.llvm.org/D65312

llvm-svn: 367242
llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
llvm/test/Transforms/ThinLTOBitcodeWriter/associated.ll [new file with mode: 0644]