Use LLVMBool for a function that logically returns a boolean value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142683 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2011-10-21 20:35:58 +00:00
parent b6310316db
commit ca7eb3e171
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ const char *LLVMGetSectionName(LLVMSectionIteratorRef SI);
uint64_t LLVMGetSectionSize(LLVMSectionIteratorRef SI); uint64_t LLVMGetSectionSize(LLVMSectionIteratorRef SI);
const char *LLVMGetSectionContents(LLVMSectionIteratorRef SI); const char *LLVMGetSectionContents(LLVMSectionIteratorRef SI);
uint64_t LLVMGetSectionAddress(LLVMSectionIteratorRef SI); uint64_t LLVMGetSectionAddress(LLVMSectionIteratorRef SI);
int LLVMGetSectionContainsSymbol(LLVMSectionIteratorRef SI, LLVMBool LLVMGetSectionContainsSymbol(LLVMSectionIteratorRef SI,
LLVMSymbolIteratorRef Sym); LLVMSymbolIteratorRef Sym);
// SymbolRef accessors // SymbolRef accessors

View File

@ -104,7 +104,7 @@ uint64_t LLVMGetSectionAddress(LLVMSectionIteratorRef SI) {
return ret; return ret;
} }
int LLVMGetSectionContainsSymbol(LLVMSectionIteratorRef SI, LLVMBool LLVMGetSectionContainsSymbol(LLVMSectionIteratorRef SI,
LLVMSymbolIteratorRef Sym) { LLVMSymbolIteratorRef Sym) {
bool ret; bool ret;
if (error_code ec = (*unwrap(SI))->containsSymbol(**unwrap(Sym), ret)) if (error_code ec = (*unwrap(SI))->containsSymbol(**unwrap(Sym), ret))