mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02: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). llvm-svn: 183147
This commit is contained in:
parent
7a8c1c6b6b
commit
0d6c559f20
@ -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