Correctly handle llvm.global_ctors merging.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 29 Nov 2015 03:29:42 +0000 (03:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 29 Nov 2015 03:29:42 +0000 (03:29 +0000)
commit3e3383f5f71a3a28f73601dde8472c0bedae5999
tree170589af6dc78a85b16ffb9d5e9bf3db81476259
parent323015501834d58c75becc3b05c2bd0d587167ba
Correctly handle llvm.global_ctors merging.

We were not handling the case where an entry must be dropped and the
destination module has no llvm.global_ctors.

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