Change ModuleLinker to take a set of GlobalValues to import instead of a single one
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 2 Dec 2015 04:34:28 +0000 (04:34 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 2 Dec 2015 04:34:28 +0000 (04:34 +0000)
commitaccfde3ad612bb30e426b1bc13760549a28fd9df
tree7bcc48a7353b79ab6778f8dc88842ca1c4a9fc47
parent569415a25bdab720be12062c3a0540ba026453db
Change ModuleLinker to take a set of GlobalValues to import instead of a single one

For efficiency reason, when importing multiple functions for the same Module,
we can avoid reparsing it every time.

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

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254486 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Linker/Linker.h
lib/Linker/LinkModules.cpp
lib/Transforms/IPO/FunctionImport.cpp
tools/llvm-link/llvm-link.cpp