mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Update RuntimeDyldELF::findOPDEntrySection the new relocation iterators.
This was missing from r182908. I didn't noticed it at the time because the MCJIT tests were disabled when building with cmake on ppc64 (which I fixed in r183143). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d1100b3325
commit
15e5c46e49
@ -529,9 +529,13 @@ void RuntimeDyldELF::findOPDEntrySection(ObjectImage &Obj,
|
||||
error_code err;
|
||||
for (section_iterator si = Obj.begin_sections(),
|
||||
se = Obj.end_sections(); si != se; si.increment(err)) {
|
||||
StringRef SectionName;
|
||||
check(si->getName(SectionName));
|
||||
if (SectionName != ".opd")
|
||||
section_iterator RelSecI = si->getRelocatedSection();
|
||||
if (RelSecI == Obj.end_sections())
|
||||
continue;
|
||||
|
||||
StringRef RelSectionName;
|
||||
check(RelSecI->getName(RelSectionName));
|
||||
if (RelSectionName != ".opd")
|
||||
continue;
|
||||
|
||||
for (relocation_iterator i = si->begin_relocations(),
|
||||
|
Loading…
Reference in New Issue
Block a user