From ca7eb3e171f63de3cfc1020d86375ce11d356194 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Fri, 21 Oct 2011 20:35:58 +0000 Subject: [PATCH] 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 --- include/llvm-c/Object.h | 2 +- lib/Object/Object.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm-c/Object.h b/include/llvm-c/Object.h index 35706f5874c..91dc274267c 100644 --- a/include/llvm-c/Object.h +++ b/include/llvm-c/Object.h @@ -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 diff --git a/lib/Object/Object.cpp b/lib/Object/Object.cpp index 638105b56b3..dea1466f0ba 100644 --- a/lib/Object/Object.cpp +++ b/lib/Object/Object.cpp @@ -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))