Use LLVMBool for a function that logically returns a boolean value.
authorOwen Anderson <resistor@mac.com>
Fri, 21 Oct 2011 20:35:58 +0000 (20:35 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 21 Oct 2011 20:35:58 +0000 (20:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142683 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm-c/Object.h
lib/Object/Object.cpp

index 35706f5874cb5b80142031a011f1006d3fe16494..91dc274267c35bcf9d3075fa8aeb46bbbba63e01 100644 (file)
@@ -58,7 +58,7 @@ const char *LLVMGetSectionName(LLVMSectionIteratorRef SI);
 uint64_t LLVMGetSectionSize(LLVMSectionIteratorRef SI);
 const char *LLVMGetSectionContents(LLVMSectionIteratorRef SI);
 uint64_t LLVMGetSectionAddress(LLVMSectionIteratorRef SI);
-int LLVMGetSectionContainsSymbol(LLVMSectionIteratorRef SI,
+LLVMBool LLVMGetSectionContainsSymbol(LLVMSectionIteratorRef SI,
                                  LLVMSymbolIteratorRef Sym);
 
 // SymbolRef accessors
index 638105b56b374effc3271bb76758e2c364a45968..dea1466f0ba185953a12abfa77aceac041557961 100644 (file)
@@ -104,7 +104,7 @@ uint64_t LLVMGetSectionAddress(LLVMSectionIteratorRef SI) {
   return ret;
 }
 
-int LLVMGetSectionContainsSymbol(LLVMSectionIteratorRef SI,
+LLVMBool LLVMGetSectionContainsSymbol(LLVMSectionIteratorRef SI,
                                  LLVMSymbolIteratorRef Sym) {
   bool ret;
   if (error_code ec = (*unwrap(SI))->containsSymbol(**unwrap(Sym), ret))