Deleted Added
full compact
24,34c24,25
< std::string Message;
<
< *OutModule = wrap(ParseBitcodeFile(unwrap(MemBuf), getGlobalContext(),
< &Message));
< if (!*OutModule) {
< if (OutMessage)
< *OutMessage = strdup(Message.c_str());
< return 1;
< }
<
< return 0;
---
> return LLVMParseBitcodeInContext(wrap(&getGlobalContext()), MemBuf, OutModule,
> OutMessage);
60,71c51,52
< std::string Message;
<
< *OutMP = wrap(getBitcodeModuleProvider(unwrap(MemBuf), getGlobalContext(),
< &Message));
<
< if (!*OutMP) {
< if (OutMessage)
< *OutMessage = strdup(Message.c_str());
< return 1;
< }
<
< return 0;
---
> return LLVMGetBitcodeModuleProviderInContext(wrap(&getGlobalContext()),
> MemBuf, OutMP, OutMessage);
80,81c61,62
< *OutMP = wrap(getBitcodeModuleProvider(unwrap(MemBuf), *unwrap(ContextRef),
< &Message));
---
> *OutMP = reinterpret_cast<LLVMModuleProviderRef>(
> getLazyBitcodeModule(unwrap(MemBuf), *unwrap(ContextRef), &Message));