mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-21 00:24:42 +00:00
Don't return error_code from function that never fails.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241021 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -100,9 +100,7 @@ static bool collectRelocatedSymbols(const ObjectFile *Obj,
|
||||
StringRef RelocSymName;
|
||||
if (error(RelocSymI->getName(RelocSymName)))
|
||||
return true;
|
||||
uint64_t Offset;
|
||||
if (error(Reloc.getOffset(Offset)))
|
||||
return true;
|
||||
uint64_t Offset = Reloc.getOffset();
|
||||
if (Offset >= SymOffset && Offset < SymEnd) {
|
||||
*I = RelocSymName;
|
||||
++I;
|
||||
@@ -126,9 +124,7 @@ static bool collectRelocationOffsets(
|
||||
StringRef RelocSymName;
|
||||
if (error(RelocSymI->getName(RelocSymName)))
|
||||
return true;
|
||||
uint64_t Offset;
|
||||
if (error(Reloc.getOffset(Offset)))
|
||||
return true;
|
||||
uint64_t Offset = Reloc.getOffset();
|
||||
if (Offset >= SymOffset && Offset < SymEnd)
|
||||
Collection[std::make_pair(SymName, Offset - SymOffset)] = RelocSymName;
|
||||
}
|
||||
|
Reference in New Issue
Block a user