Synchronize the logic for deciding to link a gv.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 9 Dec 2015 22:44:00 +0000 (22:44 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 9 Dec 2015 22:44:00 +0000 (22:44 +0000)
commited11bd286f76e2ea2bf7ba1ebeff2d77a1be93a0
tree9fc4786bcc62b3620f4e23887b060cd1875ee00c
parent7f4880888222fd1728b09a9e62461540db8753e7
Synchronize the logic for deciding to link a gv.

We were deciding to not link an available_externally gv over a
declaration, but then copying over the body anyway.

llvm-svn: 255169
llvm/lib/Linker/LinkModules.cpp
llvm/test/Linker/Inputs/available_externally_over_decl.ll [new file with mode: 0644]
llvm/test/Linker/available_externally_over_decl.ll [new file with mode: 0644]