Switch the linker to having a whitelist of GVs.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 2 Dec 2015 22:59:04 +0000 (22:59 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 2 Dec 2015 22:59:04 +0000 (22:59 +0000)
commit4744e8bfd8f1eded048dc640661a40cd3e81140b
treeff74a87ef7d6a26bfd4ba3dc4fa133cc35d204cd
parentba2d199d493e3cb2a6f87ff38e2830a35142714f
Switch the linker to having a whitelist of GVs.

This replaces DoNotLinkFromSource with ValuesToLink. It also moves the
computation of ValuesToLink earlier.

It is a bit simpler and an important step in slitting the linker into an
ir mover and a linker proper.

The test change is because we now avoid creating dead declarations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254559 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/LinkModules.cpp
test/Linker/funcimport.ll