mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Remove a report_fatal_error that should be unreachable.
If we created a relocation iterator, we have a valid relocation section. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241286 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a5a5a62fff
commit
98857b60ed
@ -241,10 +241,7 @@ protected:
|
|||||||
|
|
||||||
/// \brief Get the relocation section that contains \a Rel.
|
/// \brief Get the relocation section that contains \a Rel.
|
||||||
const Elf_Shdr *getRelSection(DataRefImpl Rel) const {
|
const Elf_Shdr *getRelSection(DataRefImpl Rel) const {
|
||||||
ErrorOr<const Elf_Shdr *> Sec = EF.getSection(Rel.d.a);
|
return *EF.getSection(Rel.d.a);
|
||||||
if (std::error_code EC = Sec.getError())
|
|
||||||
report_fatal_error(EC.message());
|
|
||||||
return *Sec;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const Elf_Sym *toELFSymIter(DataRefImpl Sym) const {
|
const Elf_Sym *toELFSymIter(DataRefImpl Sym) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user