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)
commitfad81ab170b3d422f0aaa15b88157fdb16d3e75d
tree572573d375b1a193ce2a7bea6b1490bbc7f6c658
parent49c4c7b2a7d8630c7c30cfb7089d9b2e2c18946c
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255169 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/LinkModules.cpp
test/Linker/Inputs/available_externally_over_decl.ll [new file with mode: 0644]
test/Linker/available_externally_over_decl.ll [new file with mode: 0644]