mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +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;
|
||||
|
||||
Reference in New Issue
Block a user