mirror of
https://github.com/rust-lang/rust
synced 2024-10-06 08:40:35 +00:00
Tweak rustllvm bindings to work on linux, where bool != LLVMBool.
This commit is contained in:
parent
24a75eeccc
commit
fb08ef44b4
|
@ -35,9 +35,9 @@ void LLVMDisposeSectionIterator(LLVMSectionIteratorRef SI) {
|
|||
delete unwrap(SI);
|
||||
}
|
||||
|
||||
bool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile,
|
||||
LLVMBool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile,
|
||||
LLVMSectionIteratorRef SI) {
|
||||
return *unwrap(SI) == unwrap(ObjectFile)->end_sections();
|
||||
return (*unwrap(SI) == unwrap(ObjectFile)->end_sections()) ? 1 : 0;
|
||||
}
|
||||
|
||||
void LLVMMoveToNextSection(LLVMSectionIteratorRef SI) {
|
||||
|
|
|
@ -38,7 +38,7 @@ void LLVMDisposeObjectFile(LLVMObjectFileRef ObjectFile);
|
|||
|
||||
LLVMSectionIteratorRef LLVMGetSections(LLVMObjectFileRef ObjectFile);
|
||||
void LLVMDisposeSectionIterator(LLVMSectionIteratorRef SI);
|
||||
bool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile,
|
||||
LLVMBool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile,
|
||||
LLVMSectionIteratorRef SI);
|
||||
void LLVMMoveToNextSection(LLVMSectionIteratorRef SI);
|
||||
const char *LLVMGetSectionName(LLVMSectionIteratorRef SI);
|
||||
|
|
Loading…
Reference in a new issue