Modify FunctionImport to take a callback to load modules
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 2 Dec 2015 02:00:29 +0000 (02:00 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 2 Dec 2015 02:00:29 +0000 (02:00 +0000)
commitf7d58f12fa2377090dd844e52662e5a942606d0f
tree92a9c64b7289d4ba1c2e911b7b9c664777ea525c
parent327823045115e7df540f8ed7f1871c432305066f
Modify FunctionImport to take a callback to load modules

When linking static archive, there is no individual module files to
load. Instead they can be mmap'ed and could be initialized from a
buffer directly. The callback provide flexibility to override the
scheme for loading module from the summary.

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

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

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