Simplify another function that doesn't fail.

llvm-svn: 238703
This commit is contained in:
Rafael Espindola
2015-06-01 00:27:26 +00:00
parent 7666be70e4
commit 5eb02e45e3
14 changed files with 31 additions and 48 deletions

View File

@@ -187,10 +187,7 @@ uint64_t LLVMGetSymbolAddress(LLVMSymbolIteratorRef SI) {
}
uint64_t LLVMGetSymbolSize(LLVMSymbolIteratorRef SI) {
uint64_t ret;
if (std::error_code ec = (*unwrap(SI))->getSize(ret))
report_fatal_error(ec.message());
return ret;
return (*unwrap(SI))->getSize();
}
// RelocationRef accessors