diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-10 20:24:04 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-10 20:24:04 +0000 |
commit | a40b3522c82f5684a8a2c59a631b8c445288f6e1 (patch) | |
tree | 86bbfc7434be05fc970615da9f80a810b100c9d8 /lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | |
parent | 700bba297ba8a99c5dfd31ceaa894fbd1496a03e (diff) | |
download | llvm-a40b3522c82f5684a8a2c59a631b8c445288f6e1.tar.gz llvm-a40b3522c82f5684a8a2c59a631b8c445288f6e1.tar.bz2 llvm-a40b3522c82f5684a8a2c59a631b8c445288f6e1.tar.xz |
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
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp')
-rw-r--r-- | lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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; } |