mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +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@241033 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -804,11 +804,9 @@ void COFFDumper::printRelocations() {
|
||||
void COFFDumper::printRelocation(const SectionRef &Section,
|
||||
const RelocationRef &Reloc) {
|
||||
uint64_t Offset = Reloc.getOffset();
|
||||
uint64_t RelocType;
|
||||
uint64_t RelocType = Reloc.getType();
|
||||
SmallString<32> RelocName;
|
||||
StringRef SymbolName;
|
||||
if (error(Reloc.getType(RelocType)))
|
||||
return;
|
||||
if (error(Reloc.getTypeName(RelocName)))
|
||||
return;
|
||||
symbol_iterator Symbol = Reloc.getSymbol();
|
||||
|
Reference in New Issue
Block a user