diff options
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/RuntimeDyld/ObjectImageCommon.h | 8 | ||||
-rw-r--r-- | lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | 12 | ||||
-rw-r--r-- | lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp | 4 |
3 files changed, 12 insertions, 12 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/ObjectImageCommon.h b/lib/ExecutionEngine/RuntimeDyld/ObjectImageCommon.h index 2056f39b5a..f647b87f59 100644 --- a/lib/ExecutionEngine/RuntimeDyld/ObjectImageCommon.h +++ b/lib/ExecutionEngine/RuntimeDyld/ObjectImageCommon.h @@ -52,14 +52,14 @@ public: virtual ~ObjectImageCommon() { delete ObjFile; } virtual object::symbol_iterator begin_symbols() const - { return ObjFile->begin_symbols(); } + { return ObjFile->symbol_begin(); } virtual object::symbol_iterator end_symbols() const - { return ObjFile->end_symbols(); } + { return ObjFile->symbol_end(); } virtual object::section_iterator begin_sections() const - { return ObjFile->begin_sections(); } + { return ObjFile->section_begin(); } virtual object::section_iterator end_sections() const - { return ObjFile->end_sections(); } + { return ObjFile->section_end(); } virtual /* Triple::ArchType */ unsigned getArch() const { return ObjFile->getArch(); } diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp index 8ea941b69d..b858965b5c 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp @@ -177,8 +177,8 @@ ObjectImage *RuntimeDyldImpl::loadObject(ObjectImage *InputObject) { StubMap Stubs; section_iterator RelocatedSection = si->getRelocatedSection(); - for (relocation_iterator i = si->begin_relocations(), - e = si->end_relocations(); + for (relocation_iterator i = si->relocation_begin(), + e = si->relocation_end(); i != e; ++i) { // If it's the first relocation in this section, find its SectionID if (isFirstRelocation) { @@ -251,15 +251,15 @@ unsigned RuntimeDyldImpl::emitSection(ObjectImage &Obj, // necessary section allocation size in loadObject by walking all the sections // once. if (StubSize > 0) { - for (section_iterator SI = ObjFile->begin_sections(), - SE = ObjFile->end_sections(); + for (section_iterator SI = ObjFile->section_begin(), + SE = ObjFile->section_end(); SI != SE; ++SI) { section_iterator RelSecI = SI->getRelocatedSection(); if (!(RelSecI == Section)) continue; - for (relocation_iterator I = SI->begin_relocations(), - E = SI->end_relocations(); + for (relocation_iterator I = SI->relocation_begin(), + E = SI->relocation_end(); I != E; ++I) { StubBufSize += StubSize; } diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp index 4dbd6794c6..a4246e0c71 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp @@ -632,8 +632,8 @@ void RuntimeDyldELF::findOPDEntrySection(ObjectImage &Obj, if (RelSectionName != ".opd") continue; - for (relocation_iterator i = si->begin_relocations(), - e = si->end_relocations(); i != e;) { + for (relocation_iterator i = si->relocation_begin(), + e = si->relocation_end(); i != e;) { // The R_PPC64_ADDR64 relocation indicates the first field // of a .opd entry uint64_t TypeFunc; |