[ThinLTO] Use bulk importing in llvm-link
authorTeresa Johnson <tejohnson@google.com>
Thu, 24 Mar 2016 19:52:20 +0000 (19:52 +0000)
committerTeresa Johnson <tejohnson@google.com>
Thu, 24 Mar 2016 19:52:20 +0000 (19:52 +0000)
commitf4cc7525535a590624b4bdfdb0cef73b8dcd17a1
tree9da8481a53e696c61fbb54283cb9ff2bfdc8fcf7
parentcb7ce98486c3f6b6025130e95b71acd8c04d7b4d
[ThinLTO] Use bulk importing in llvm-link

Summary:
Use bulk importing so we can avoid the use of post-pass metadata
linking. Cloned the ModuleLazyLoaderCache from the FunctionImport pass
to facilitate this.

Reviewers: joker.eph

Subscribers: dexonsmith, llvm-commits, joker.eph

Differential Revision: http://reviews.llvm.org/D18455

llvm-svn: 264326
llvm/tools/llvm-link/llvm-link.cpp