Don't return error_code from a function that doesn't fail.

llvm-svn: 241033
This commit is contained in:
Rafael Espindola
2015-06-30 01:53:01 +00:00
parent 9ba0fec83e
commit 99c041b72f
13 changed files with 26 additions and 49 deletions

View File

@@ -990,11 +990,9 @@ symbol_iterator COFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const {
return symbol_iterator(SymbolRef(Ref, this));
}
std::error_code COFFObjectFile::getRelocationType(DataRefImpl Rel,
uint64_t &Res) const {
uint64_t COFFObjectFile::getRelocationType(DataRefImpl Rel) const {
const coff_relocation* R = toRel(Rel);
Res = R->Type;
return std::error_code();
return R->Type;
}
const coff_section *