aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-10-21 20:35:58 +0000
committerOwen Anderson <resistor@mac.com>2011-10-21 20:35:58 +0000
commitca7eb3e171f63de3cfc1020d86375ce11d356194 (patch)
tree792b8cfb1553892f1e0199d5c4c77cf6fb85a2e3
parentb6310316dbaf8716003531d7ed245f77f1a76a11 (diff)
downloadexternal_llvm-ca7eb3e171f63de3cfc1020d86375ce11d356194.zip
external_llvm-ca7eb3e171f63de3cfc1020d86375ce11d356194.tar.gz
external_llvm-ca7eb3e171f63de3cfc1020d86375ce11d356194.tar.bz2
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
-rw-r--r--include/llvm-c/Object.h2
-rw-r--r--lib/Object/Object.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm-c/Object.h b/include/llvm-c/Object.h
index 35706f5..91dc274 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 638105b..dea1466 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))