OSDN Git Service

Lazily link GlobalVariables and GlobalAliases.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 8 Dec 2014 18:45:16 +0000 (18:45 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 8 Dec 2014 18:45:16 +0000 (18:45 +0000)
commit7fd7effa372caf6e329f5c78b4e6cf13adf7e314
treeed3225ff6a8c1e67c522a6453c2ae29a7a4358f6
parent47725023179371d58cb9419565434c65a73e9aae
Lazily link GlobalVariables and GlobalAliases.

We were already lazily linking functions, but all GlobalValues can be treated
uniformly for this.

The test updates are to ensure that a given GlobalValue is still linked in.

This fixes pr21494.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223681 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/LinkModules.cpp
test/LTO/cfi_endproc.ll
test/LTO/linkonce_odr_func.ll
test/Linker/Inputs/testlink.ll
test/Linker/lto-attributes.ll
test/Linker/pr21494.ll [new file with mode: 0644]
test/Linker/testlink.ll