Change llvm-c's ordering of contexts to make it consistent.

llvm-svn: 78656
This commit is contained in:
Erick Tryzelaar
2009-08-11 07:46:16 +00:00
parent 192d7c0752
commit 70ede4843c
2 changed files with 10 additions and 10 deletions

View File

@@ -34,12 +34,12 @@ int LLVMParseBitcode(LLVMMemoryBufferRef MemBuf,
return 0;
}
int LLVMParseBitcodeInContext(LLVMMemoryBufferRef MemBuf,
LLVMContextRef ContextRef,
int LLVMParseBitcodeInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef *OutModule, char **OutMessage) {
std::string Message;
*OutModule = wrap(ParseBitcodeFile(unwrap(MemBuf), *unwrap(ContextRef),
*OutModule = wrap(ParseBitcodeFile(unwrap(MemBuf), *unwrap(ContextRef),
&Message));
if (!*OutModule) {
if (OutMessage)
@@ -70,13 +70,13 @@ int LLVMGetBitcodeModuleProvider(LLVMMemoryBufferRef MemBuf,
return 0;
}
int LLVMGetBitcodeModuleProviderInContext(LLVMMemoryBufferRef MemBuf,
LLVMContextRef ContextRef,
int LLVMGetBitcodeModuleProviderInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleProviderRef *OutMP,
char **OutMessage) {
std::string Message;
*OutMP = wrap(getBitcodeModuleProvider(unwrap(MemBuf), *unwrap(ContextRef),
*OutMP = wrap(getBitcodeModuleProvider(unwrap(MemBuf), *unwrap(ContextRef),
&Message));
if (!*OutMP) {
if (OutMessage)