diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2015-11-19 05:52:29 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2015-11-19 05:52:29 +0000 |
commit | 354f520fbcb0a410a56a3f543640f434cb2d1fa2 (patch) | |
tree | f07267e11a60e3bf82517c1c8a84ee0369c21ff6 /llvm/tools/llvm-link/llvm-link.cpp | |
parent | 00aecfc388173f94e532e376662ff26198064a83 (diff) | |
download | bcm5719-llvm-354f520fbcb0a410a56a3f543640f434cb2d1fa2.tar.gz bcm5719-llvm-354f520fbcb0a410a56a3f543640f434cb2d1fa2.zip |
Do not require a Context to extract the FunctionIndex from Bitcode (NFC)
The LLVMContext was only used for Diagnostic. Pass a DiagnosticHandler
instead.
Differential Revision: http://reviews.llvm.org/D14794
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 253540
Diffstat (limited to 'llvm/tools/llvm-link/llvm-link.cpp')
-rw-r--r-- | llvm/tools/llvm-link/llvm-link.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp index 8d0ce0a040f..c539f75702b 100644 --- a/llvm/tools/llvm-link/llvm-link.cpp +++ b/llvm/tools/llvm-link/llvm-link.cpp @@ -148,7 +148,7 @@ loadIndex(LLVMContext &Context, const Module *ExportingModule = nullptr) { return EC; MemoryBufferRef BufferRef = (FileOrErr.get())->getMemBufferRef(); ErrorOr<std::unique_ptr<object::FunctionIndexObjectFile>> ObjOrErr = - object::FunctionIndexObjectFile::create(BufferRef, Context, + object::FunctionIndexObjectFile::create(BufferRef, diagnosticHandler, ExportingModule); EC = ObjOrErr.getError(); if (EC) |