mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Change llvm-c's ordering of contexts to make it consistent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a8ea215e6
commit
ccf9f2b12e
@ -32,8 +32,8 @@ extern "C" {
|
|||||||
int LLVMParseBitcode(LLVMMemoryBufferRef MemBuf,
|
int LLVMParseBitcode(LLVMMemoryBufferRef MemBuf,
|
||||||
LLVMModuleRef *OutModule, char **OutMessage);
|
LLVMModuleRef *OutModule, char **OutMessage);
|
||||||
|
|
||||||
int LLVMParseBitcodeInContext(LLVMMemoryBufferRef MemBuf,
|
int LLVMParseBitcodeInContext(LLVMContextRef ContextRef,
|
||||||
LLVMContextRef ContextRef,
|
LLVMMemoryBufferRef MemBuf,
|
||||||
LLVMModuleRef *OutModule, char **OutMessage);
|
LLVMModuleRef *OutModule, char **OutMessage);
|
||||||
|
|
||||||
/* Reads a module from the specified path, returning via the OutMP parameter
|
/* Reads a module from the specified path, returning via the OutMP parameter
|
||||||
@ -43,8 +43,8 @@ int LLVMGetBitcodeModuleProvider(LLVMMemoryBufferRef MemBuf,
|
|||||||
LLVMModuleProviderRef *OutMP,
|
LLVMModuleProviderRef *OutMP,
|
||||||
char **OutMessage);
|
char **OutMessage);
|
||||||
|
|
||||||
int LLVMGetBitcodeModuleProviderInContext(LLVMMemoryBufferRef MemBuf,
|
int LLVMGetBitcodeModuleProviderInContext(LLVMContextRef ContextRef,
|
||||||
LLVMContextRef ContextRef,
|
LLVMMemoryBufferRef MemBuf,
|
||||||
LLVMModuleProviderRef *OutMP,
|
LLVMModuleProviderRef *OutMP,
|
||||||
char **OutMessage);
|
char **OutMessage);
|
||||||
|
|
||||||
|
@ -34,12 +34,12 @@ int LLVMParseBitcode(LLVMMemoryBufferRef MemBuf,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int LLVMParseBitcodeInContext(LLVMMemoryBufferRef MemBuf,
|
int LLVMParseBitcodeInContext(LLVMContextRef ContextRef,
|
||||||
LLVMContextRef ContextRef,
|
LLVMMemoryBufferRef MemBuf,
|
||||||
LLVMModuleRef *OutModule, char **OutMessage) {
|
LLVMModuleRef *OutModule, char **OutMessage) {
|
||||||
std::string Message;
|
std::string Message;
|
||||||
|
|
||||||
*OutModule = wrap(ParseBitcodeFile(unwrap(MemBuf), *unwrap(ContextRef),
|
*OutModule = wrap(ParseBitcodeFile(unwrap(MemBuf), *unwrap(ContextRef),
|
||||||
&Message));
|
&Message));
|
||||||
if (!*OutModule) {
|
if (!*OutModule) {
|
||||||
if (OutMessage)
|
if (OutMessage)
|
||||||
@ -70,13 +70,13 @@ int LLVMGetBitcodeModuleProvider(LLVMMemoryBufferRef MemBuf,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int LLVMGetBitcodeModuleProviderInContext(LLVMMemoryBufferRef MemBuf,
|
int LLVMGetBitcodeModuleProviderInContext(LLVMContextRef ContextRef,
|
||||||
LLVMContextRef ContextRef,
|
LLVMMemoryBufferRef MemBuf,
|
||||||
LLVMModuleProviderRef *OutMP,
|
LLVMModuleProviderRef *OutMP,
|
||||||
char **OutMessage) {
|
char **OutMessage) {
|
||||||
std::string Message;
|
std::string Message;
|
||||||
|
|
||||||
*OutMP = wrap(getBitcodeModuleProvider(unwrap(MemBuf), *unwrap(ContextRef),
|
*OutMP = wrap(getBitcodeModuleProvider(unwrap(MemBuf), *unwrap(ContextRef),
|
||||||
&Message));
|
&Message));
|
||||||
if (!*OutMP) {
|
if (!*OutMP) {
|
||||||
if (OutMessage)
|
if (OutMessage)
|
||||||
|
Loading…
Reference in New Issue
Block a user