OSDN Git Service

Do not require a Context to extract the FunctionIndex from Bitcode (NFC)
authorMehdi Amini <mehdi.amini@apple.com>
Thu, 19 Nov 2015 05:52:29 +0000 (05:52 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Thu, 19 Nov 2015 05:52:29 +0000 (05:52 +0000)
commit0ab4d52b0ad3b1d16238aed4c3f8d50fa8bf8b40
tree7408f40470911e27ec1a3dfe78f2e2678e13eb13
parent0171b5136f22286adac5dfcf404056445c020b68
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>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253540 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Bitcode/ReaderWriter.h
include/llvm/Object/FunctionIndexObjectFile.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Object/FunctionIndexObjectFile.cpp
tools/llvm-link/llvm-link.cpp
tools/llvm-lto/llvm-lto.cpp