implement linking of globals to functions, in one direction
authorChris Lattner <sabre@nondot.org>
Mon, 14 Jul 2008 06:49:45 +0000 (06:49 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 14 Jul 2008 06:49:45 +0000 (06:49 +0000)
commitd1ec48c641f76d4c0e5b7cb357a1333d4fb75c4a
tree3d1ecbd6559d1eb32d37371a04a7ff980f218213
parent0bb8757997392ee18ca9de0f1fab29463f8e7aeb
implement linking of globals to functions, in one direction
(replacing a function with a global).  This is needed when building
llvm itself with LTO on darwin, because of the EXPLICIT_SYMBOL hack
in lib/system/DynamicLibrary.cpp.

Implementation of linking the other way will need to wait for a
cleanup of LinkFunctionProtos.

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