diff options
author | Teresa Johnson <tejohnson@google.com> | 2015-11-03 00:14:15 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2015-11-03 00:14:15 +0000 |
commit | c7ed52f2ba04d7e9588f9eb7cda023d8321a07f1 (patch) | |
tree | f1635e5e28d9734c9a6c57625ab4a012707ecc63 /llvm/lib/Object/FunctionIndexObjectFile.cpp | |
parent | 9c8905c7c85a723beef52867d3026b79f7278ff9 (diff) | |
download | llvm-c7ed52f2ba04d7e9588f9eb7cda023d8321a07f1.zip llvm-c7ed52f2ba04d7e9588f9eb7cda023d8321a07f1.tar.gz llvm-c7ed52f2ba04d7e9588f9eb7cda023d8321a07f1.tar.bz2 |
Restore "Support for ThinLTO function importing and symbol linking."
This restores commit r251837, with the new library dependence added to
llvm-link/Makefile to address bot failures.
llvm-svn: 251866
Diffstat (limited to 'llvm/lib/Object/FunctionIndexObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/FunctionIndexObjectFile.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Object/FunctionIndexObjectFile.cpp b/llvm/lib/Object/FunctionIndexObjectFile.cpp index b1e8ebc..ee65990 100644 --- a/llvm/lib/Object/FunctionIndexObjectFile.cpp +++ b/llvm/lib/Object/FunctionIndexObjectFile.cpp @@ -1,5 +1,4 @@ -//===- FunctionIndexObjectFile.cpp - Function index file implementation -//----===// +//===- FunctionIndexObjectFile.cpp - Function index file implementation ---===// // // The LLVM Compiler Infrastructure // @@ -86,15 +85,15 @@ bool FunctionIndexObjectFile::hasFunctionSummaryInMemBuffer( // function summary/index. ErrorOr<std::unique_ptr<FunctionIndexObjectFile>> FunctionIndexObjectFile::create(MemoryBufferRef Object, LLVMContext &Context, - bool IsLazy) { + const Module *ExportingModule, bool IsLazy) { std::unique_ptr<FunctionInfoIndex> Index; ErrorOr<MemoryBufferRef> BCOrErr = findBitcodeInMemBuffer(Object); if (!BCOrErr) return BCOrErr.getError(); - ErrorOr<std::unique_ptr<FunctionInfoIndex>> IOrErr = - getFunctionInfoIndex(BCOrErr.get(), Context, nullptr, IsLazy); + ErrorOr<std::unique_ptr<FunctionInfoIndex>> IOrErr = getFunctionInfoIndex( + BCOrErr.get(), Context, nullptr, ExportingModule, IsLazy); if (std::error_code EC = IOrErr.getError()) return EC; |