[llvm-commits] [llvm] r142683 - in /llvm/trunk: include/llvm-c/Object.h lib/Object/Object.cpp
Owen Anderson
resistor at mac.com
Fri Oct 21 13:35:58 PDT 2011
Author: resistor
Date: Fri Oct 21 15:35:58 2011
New Revision: 142683
URL: http://llvm.org/viewvc/llvm-project?rev=142683&view=rev
Log:
Use LLVMBool for a function that logically returns a boolean value.
Modified:
llvm/trunk/include/llvm-c/Object.h
llvm/trunk/lib/Object/Object.cpp
Modified: llvm/trunk/include/llvm-c/Object.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Object.h?rev=142683&r1=142682&r2=142683&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/Object.h (original)
+++ llvm/trunk/include/llvm-c/Object.h Fri Oct 21 15:35:58 2011
@@ -58,7 +58,7 @@
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
Modified: llvm/trunk/lib/Object/Object.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/Object.cpp?rev=142683&r1=142682&r2=142683&view=diff
==============================================================================
--- llvm/trunk/lib/Object/Object.cpp (original)
+++ llvm/trunk/lib/Object/Object.cpp Fri Oct 21 15:35:58 2011
@@ -104,7 +104,7 @@
return ret;
}
-int LLVMGetSectionContainsSymbol(LLVMSectionIteratorRef SI,
+LLVMBool LLVMGetSectionContainsSymbol(LLVMSectionIteratorRef SI,
LLVMSymbolIteratorRef Sym) {
bool ret;
if (error_code ec = (*unwrap(SI))->containsSymbol(**unwrap(Sym), ret))
More information about the llvm-commits
mailing list