[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)
commit5fcbdb717c994ca4215003e8ba349b6f0943e80b
tree82e5fb38c1364b338fc4756a1c3967695bb78feb
parentf9bdb872bd8eacd1b3dbbcd7057a8ca9ffa300a4
[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

llvm-svn: 254926
llvm/include/llvm/LinkAllPasses.h
llvm/include/llvm/Transforms/IPO.h
llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h
llvm/lib/Transforms/IPO/FunctionImport.cpp
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp