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

@@ -236,16 +236,12 @@ uint32_t COFFObjectFile::getSymbolFlags(DataRefImpl Ref) const {
return Result;
}
std::error_code COFFObjectFile::getSymbolSize(DataRefImpl Ref,
uint64_t &Result) const {
uint64_t COFFObjectFile::getSymbolSize(DataRefImpl Ref) const {
COFFSymbolRef Symb = getCOFFSymbol(Ref);
if (Symb.isCommon())
Result = Symb.getValue();
else
Result = UnknownAddressOrSize;
return object_error::success;
return Symb.getValue();
return UnknownAddressOrSize;
}
std::error_code