summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2015-11-03 00:14:15 +0000
committerTeresa Johnson <tejohnson@google.com>2015-11-03 00:14:15 +0000
commitc7ed52f2ba04d7e9588f9eb7cda023d8321a07f1 (patch)
treef1635e5e28d9734c9a6c57625ab4a012707ecc63 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent9c8905c7c85a723beef52867d3026b79f7278ff9 (diff)
downloadbcm5719-llvm-c7ed52f2ba04d7e9588f9eb7cda023d8321a07f1.tar.gz
bcm5719-llvm-c7ed52f2ba04d7e9588f9eb7cda023d8321a07f1.zip
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/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 1a63e08f667..4b8b554b252 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -5813,12 +5813,12 @@ llvm::getBitcodeTargetTriple(MemoryBufferRef Buffer, LLVMContext &Context,
ErrorOr<std::unique_ptr<FunctionInfoIndex>>
llvm::getFunctionInfoIndex(MemoryBufferRef Buffer, LLVMContext &Context,
DiagnosticHandlerFunction DiagnosticHandler,
- bool IsLazy) {
+ const Module *ExportingModule, bool IsLazy) {
std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Buffer, false);
FunctionIndexBitcodeReader R(Buf.get(), Context, DiagnosticHandler, IsLazy);
std::unique_ptr<FunctionInfoIndex> Index =
- llvm::make_unique<FunctionInfoIndex>();
+ llvm::make_unique<FunctionInfoIndex>(ExportingModule);
auto cleanupOnError = [&](std::error_code EC) {
R.releaseBuffer(); // Never take ownership on error.
OpenPOWER on IntegriCloud