Link declaration lazily.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 7 Dec 2015 16:31:41 +0000 (16:31 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 7 Dec 2015 16:31:41 +0000 (16:31 +0000)
commit0178d23ade9b549a91e3409dd15833ea8a451cb4
tree479cd70876c93a9bae85d8395141c29e98b604d3
parent7218e37dabb5cc8b3b61b08cbaf0da49da65a479
Link declaration lazily.

We already linked available_externally and linkonce lazily, this just
adds declarations to the list.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254917 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
lib/Linker/LinkModules.cpp
test/Linker/2003-04-23-LinkOnceLost.ll
test/Linker/2003-05-31-LinkerRename.ll
test/Linker/ConstantGlobals.ll
test/Linker/Inputs/opaque.ll
test/Linker/Inputs/testlink.ll
test/Linker/Inputs/type-unique-dst-types2.ll
test/Linker/Inputs/type-unique-dst-types3.ll
test/Linker/opaque.ll
test/Linker/testlink.ll
test/Linker/type-unique-dst-types.ll
test/Linker/type-unique-src-type.ll
test/Linker/unnamed-addr1-a.ll
test/Linker/weakextern.ll