mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44: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);
|
delete unwrap(SI);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile,
|
LLVMBool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile,
|
||||||
LLVMSectionIteratorRef SI) {
|
LLVMSectionIteratorRef SI) {
|
||||||
return *unwrap(SI) == unwrap(ObjectFile)->end_sections();
|
return (*unwrap(SI) == unwrap(ObjectFile)->end_sections()) ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLVMMoveToNextSection(LLVMSectionIteratorRef SI) {
|
void LLVMMoveToNextSection(LLVMSectionIteratorRef SI) {
|
||||||
|
@ -38,7 +38,7 @@ void LLVMDisposeObjectFile(LLVMObjectFileRef ObjectFile);
|
|||||||
|
|
||||||
LLVMSectionIteratorRef LLVMGetSections(LLVMObjectFileRef ObjectFile);
|
LLVMSectionIteratorRef LLVMGetSections(LLVMObjectFileRef ObjectFile);
|
||||||
void LLVMDisposeSectionIterator(LLVMSectionIteratorRef SI);
|
void LLVMDisposeSectionIterator(LLVMSectionIteratorRef SI);
|
||||||
bool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile,
|
LLVMBool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile,
|
||||||
LLVMSectionIteratorRef SI);
|
LLVMSectionIteratorRef SI);
|
||||||
void LLVMMoveToNextSection(LLVMSectionIteratorRef SI);
|
void LLVMMoveToNextSection(LLVMSectionIteratorRef SI);
|
||||||
const char *LLVMGetSectionName(LLVMSectionIteratorRef SI);
|
const char *LLVMGetSectionName(LLVMSectionIteratorRef SI);
|
||||||
|
Loading…
Reference in New Issue
Block a user