From c7ed52f2ba04d7e9588f9eb7cda023d8321a07f1 Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Tue, 3 Nov 2015 00:14:15 +0000 Subject: 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 --- llvm/lib/Object/FunctionIndexObjectFile.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'llvm/lib/Object/FunctionIndexObjectFile.cpp') 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> FunctionIndexObjectFile::create(MemoryBufferRef Object, LLVMContext &Context, - bool IsLazy) { + const Module *ExportingModule, bool IsLazy) { std::unique_ptr Index; ErrorOr BCOrErr = findBitcodeInMemBuffer(Object); if (!BCOrErr) return BCOrErr.getError(); - ErrorOr> IOrErr = - getFunctionInfoIndex(BCOrErr.get(), Context, nullptr, IsLazy); + ErrorOr> IOrErr = getFunctionInfoIndex( + BCOrErr.get(), Context, nullptr, ExportingModule, IsLazy); if (std::error_code EC = IOrErr.getError()) return EC; -- cgit v1.1