mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Remove section_rel_empty. Just compare begin() and end() instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205577 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -163,7 +163,10 @@ ObjectImage *RuntimeDyldImpl::loadObject(ObjectImage *InputObject) {
|
||||
StubMap Stubs;
|
||||
section_iterator RelocatedSection = SI->getRelocatedSection();
|
||||
|
||||
if (SI->relocation_empty() && !ProcessAllSections)
|
||||
relocation_iterator I = SI->relocation_begin();
|
||||
relocation_iterator E = SI->relocation_end();
|
||||
|
||||
if (I == E && !ProcessAllSections)
|
||||
continue;
|
||||
|
||||
bool IsCode = false;
|
||||
@@ -172,8 +175,7 @@ ObjectImage *RuntimeDyldImpl::loadObject(ObjectImage *InputObject) {
|
||||
findOrEmitSection(*Obj, *RelocatedSection, IsCode, LocalSections);
|
||||
DEBUG(dbgs() << "\tSectionID: " << SectionID << "\n");
|
||||
|
||||
for (relocation_iterator I = SI->relocation_begin(),
|
||||
E = SI->relocation_end(); I != E;)
|
||||
for (; I != E;)
|
||||
I = processRelocationRef(SectionID, I, *Obj, LocalSections, LocalSymbols,
|
||||
Stubs);
|
||||
}
|
||||
|
Reference in New Issue
Block a user