[ThinLTO] Support for specifying function index from pass manager
authorTeresa Johnson <tejohnson@google.com>
Mon, 7 Dec 2015 19:21:11 +0000 (19:21 +0000)
committerTeresa Johnson <tejohnson@google.com>
Mon, 7 Dec 2015 19:21:11 +0000 (19:21 +0000)
commit5d0d98f6ec23fc83ec1b4f0816bcba9d393db1c4
tree3fd10880113ce36c884608a143422a8319fc416d
parentfbee4fa427e8b0959a95654924714449c7e076ba
[ThinLTO] Support for specifying function index from pass manager

Summary:
Add a field on the PassManagerBuilder that clang or gold can use to pass
down a pointer to the function index in memory to use for importing when
the ThinLTO backend is triggered. Add support to supply this to the
function import pass.

Reviewers: joker.eph, dexonsmith

Subscribers: davidxl, llvm-commits, joker.eph

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

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