From a40b3522c82f5684a8a2c59a631b8c445288f6e1 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 10 Feb 2014 20:24:04 +0000 Subject: Change the begin and end methods in ObjectFile to match the style guide. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201108 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp') 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; } -- cgit v1.2.3