diff options
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitReader.cpp')
| -rw-r--r-- | llvm/lib/Bitcode/Reader/BitReader.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitReader.cpp b/llvm/lib/Bitcode/Reader/BitReader.cpp index da2cf07..5e7d612 100644 --- a/llvm/lib/Bitcode/Reader/BitReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitReader.cpp @@ -22,13 +22,14 @@ using namespace llvm; Optionally returns a human-readable error message via OutMessage. */ LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule, char **OutMessage) { - return LLVMParseBitcodeInContext(LLVMGetGlobalContext(), MemBuf, OutModule, + return LLVMParseBitcodeInContext(getGlobalContextForCAPI(), MemBuf, OutModule, OutMessage); } LLVMBool LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule) { - return LLVMParseBitcodeInContext2(LLVMGetGlobalContext(), MemBuf, OutModule); + return LLVMParseBitcodeInContext2(getGlobalContextForCAPI(), MemBuf, + OutModule); } LLVMBool LLVMParseBitcodeInContext(LLVMContextRef ContextRef, @@ -122,11 +123,12 @@ LLVMBool LLVMGetBitcodeModuleInContext2(LLVMContextRef ContextRef, LLVMBool LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM, char **OutMessage) { - return LLVMGetBitcodeModuleInContext(LLVMGetGlobalContext(), MemBuf, OutM, + return LLVMGetBitcodeModuleInContext(getGlobalContextForCAPI(), MemBuf, OutM, OutMessage); } LLVMBool LLVMGetBitcodeModule2(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM) { - return LLVMGetBitcodeModuleInContext2(LLVMGetGlobalContext(), MemBuf, OutM); + return LLVMGetBitcodeModuleInContext2(getGlobalContextForCAPI(), MemBuf, + OutM); } |
