Set comdats when lazily linking functions.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 15 Aug 2014 20:17:08 +0000 (20:17 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 15 Aug 2014 20:17:08 +0000 (20:17 +0000)
commit0549fc2448a47515237319a2078e7bcda1c19bbe
treee1ce0b0c8d5d438a65a3dd86b8bd77d2e68d7fa7
parent9ad3f9b8e1d41cbd0bd1518086cf9aa0132db9b5
Set comdats when lazily linking functions.

We were setting the comdat when functions were copied in the initial pass, but
not when they were linked only when we found out that they are needed.

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