mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Don't return error_code from a function that doesn't fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241042 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -807,8 +807,7 @@ void COFFDumper::printRelocation(const SectionRef &Section,
|
||||
uint64_t RelocType = Reloc.getType();
|
||||
SmallString<32> RelocName;
|
||||
StringRef SymbolName;
|
||||
if (error(Reloc.getTypeName(RelocName)))
|
||||
return;
|
||||
Reloc.getTypeName(RelocName);
|
||||
symbol_iterator Symbol = Reloc.getSymbol();
|
||||
if (Symbol != Obj->symbol_end() && error(Symbol->getName(SymbolName)))
|
||||
return;
|
||||
|
@ -463,8 +463,7 @@ void MachODumper::printRelocation(const MachOObjectFile *Obj,
|
||||
const RelocationRef &Reloc) {
|
||||
uint64_t Offset = Reloc.getOffset();
|
||||
SmallString<32> RelocName;
|
||||
if (error(Reloc.getTypeName(RelocName)))
|
||||
return;
|
||||
Reloc.getTypeName(RelocName);
|
||||
|
||||
DataRefImpl DR = Reloc.getRawDataRefImpl();
|
||||
MachO::any_relocation_info RE = Obj->getRelocation(DR);
|
||||
|
Reference in New Issue
Block a user